简体   繁体   中英

AWS Pinpoint Android, “EventRecorder: Unable to successfully deliver events to server”

I'm attempting to get AWS Pinpoint to send notifications to my Android app. I have gone through the setup testing instructions here: https://aws-amplify.github.io/docs/android/push-notifications

I'm able to get a Pinpoint client device token and send a message with the Pinpoint test messaging console. Once I send the message I get the following stacktrace in my log:

2019-04-11 11:56:34.757 8880-9196/com.example E/EventRecorder: Unable to successfully deliver events to server. Events will be saved, error likely recoverable.Cognito Identity not configured
com.amazonaws.AmazonClientException: Cognito Identity not configured
    at com.amazonaws.mobile.client.AWSMobileClient.getCredentials(AWSMobileClient.java:352)
    at com.amazonaws.services.pinpoint.AmazonPinpointClient.invoke(AmazonPinpointClient.java:4024)
    at com.amazonaws.services.pinpoint.AmazonPinpointClient.putEvents(AmazonPinpointClient.java:3074)
    at com.amazonaws.mobileconnectors.pinpoint.internal.event.EventRecorder.submitEventsAndEndpoint(EventRecorder.java:366)
    at com.amazonaws.mobileconnectors.pinpoint.internal.event.EventRecorder.submitEventsAndEndpoint(EventRecorder.java:344)
    at com.amazonaws.mobileconnectors.pinpoint.internal.event.EventRecorder.processEvents(EventRecorder.java:315)
    at com.amazonaws.mobileconnectors.pinpoint.internal.event.EventRecorder$1.run(EventRecorder.java:240)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    at java.lang.Thread.run(Thread.java:914)

The stacktrace suggests I need "Cognito Identity" for messaging to work, but I don't want that service as I already have user management/authentication process built.

How do I resolve this issue?

Thank you.

我能够通过使用物理设备而不是模拟器来解决此问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM