Open MishaPadalka opened 1 week ago
Hello @MishaPadalka thank you for submitting this issue. We will look into this and get back to you!
Hello @MishaPadalka after review our documentation for setting up push notification we found this excerpt:
Authorizing the app for analytics events is crucial for unauthenticated users, particularly if you intend to configure Amplify or send push notifications to your users before their authentication. If authorization is declined, please keep in mind that updating the Cognito user pool would become necessary, and any subsequent updates could potentially result in the deletion of the current user data.
Your role trust policy seems to be configured to authorization:
"cognito-identity.amazonaws.com:amr": "authenticated"
Could you please try updating you trust policy to "unauthenticated" and let us know if that resolves your issue.
Hello @tyllark I tried to update the trust policy to unauthenticated but it didn't help, the same error occurs. Maybe there is another option in which this error can occur? Also I wanted to add that during the first ran I receive this error :
, but after hot restart I receive this one
@MishaPadalka Sorry for the delay. Can you please verify the status of guest access in your identity.
AWS Console -> Cognito -> Identity pools -> Identity pool name -> User access -> Guest access
If guest access is inactive try activating it and verify again that the guest role's trust relationship is unauthenticated.
Description
When running app both on Android and iOS I face this issue during the configureAmplify() method which is inside main():
When I remove await Amplify.addPlugin(pushPlugin); I don't receive such error. I use existing resources, here is my amplifyconfig
Here is AWS cognito identity pool information :
Categories
Steps to Reproduce
Open the app -> run main() -> run configureAmplify() -> error appears
Screenshots
Platforms
Flutter Version
3.19.0
Amplify Flutter Version
1.8.0
Deployment Method
Amplify CLI + Custom Pipeline
Schema
No response