Pinpoint exception during endpoint update

0

Hi,

I've spent the last two hours meticulously following the published instructions for setting up push notifications in my Android app using the Amplify and Pinpoint services.

When I run my app, I see this:

PinpointException occurred during endpoint update: AuthException{message=Failed to get credentials. Check if you are signed in and configured identity pools correctly., cause=null, recoverySuggestion=Sorry, we don't have a suggested fix for this error yet.}

I do not have the slightest idea where to begin debugging this. The stack trace that appears does not lead to any code that I wrote myself, so I don't know where in my app the problem originates. However I can tell with the debugger that my app does execute the Amplify.configure() method without exception.

What should I do?

  • I'm confused by all the references to authentication that I'm seeing. My app does not require users to log in to AWS accounts, or any accounts for that matter. I just want to be able to send push notifications to the device. Is this possible?

Frank
asked a year ago227 views
1 Answer
0

pinpoint uses Amazon Cognito identity pools to manage and authenticate users. Even if your app does not require users to log in, Amazon still needs a way to uniquely identify each device that uses your app, and that's where the Cognito identity pool comes in. If your app does not require users to log in, you should ensure that you have configured your Cognito identity pool to allow unauthenticated identities. This allows devices to interact with AWS services without the need for a user to log in. You can check this in the AWS Console under Cognito > Manage Identity Pools > [Your Identity Pool] > Edit identity pool. There should be a checkbox for "Enable access to unauthenticated identities".

profile picture
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions