Closed hoangtam101 closed 1 year ago
I've fixed this issues Thanks,
@hoangtam101, glad to hear you were able to unblock yourself before we could investigate this further. Can you share what the fix was or what you did to resolve it? Always love to see if we can get that context in the event someone searches for something similar within our repo looking for an answer.
Also, is there any improvements to the documentation that you'd recommend to help avoid running into this again? Appreciate any feedback you'd be willing to give.
Yes, I've wrong when input the <intent-filter>
inside SplashActivity
It should be inside MainActivity
Regards,
Sorry @cwomack , I've opened the issue because sometimes I can not log in with Google on Android device.
I got the error message below.
LOG {"channel":"auth","payload":{"event":"signIn_failure","data":{},"message":"The OAuth response flow failed"},"source":"Auth","patternInfo":[]}
LOG {"channel":"auth","payload":{"event":"cognitoHostedUI_failure","data":{},"message":"A failure occurred when returning to the Cognito Hosted UI"},"source":"Auth","patternInfo":[]}
LOG {"channel":"auth","payload":{"event":"customState_failure","data":{},"message":"A failure occurred when returning state"},"source":"Auth","patternInfo":[]}
LOG {"channel":"auth","payload":{"event":"signIn_failure","data":{},"message":"The OAuth response flow failed"},"source":"Auth","patternInfo":[]}
LOG {"channel":"auth","payload":{"event":"cognitoHostedUI_failure","data":{},"message":"A failure occurred when returning to the Cognito Hosted UI"},"source":"Auth","patternInfo":[]}
LOG {"channel":"auth","payload":{"event":"customState_failure","data":{},"message":"A failure occurred when returning state"},"source":"Auth","patternInfo":[]}
System: Android Version: 10 Device name: Samsung Galaxy S9
Thanks and regards,
@hoangtam101, do you get the error when trying to login again a second time? Also, do you see the failure happen on Android emulators or real/physical devices (or both)?
Closing this issue as we have not heard back from you. If you are still experiencing this, please feel free to reply back and provide any information previously requested and we'd be happy to re-open the issue.
Thank you!
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
Bug is related to android platform which is happening only when doing login using Auth.federatedSignIn(provider: 'Google') When I call the login by google then open the webview and then I received the data below
{"channel":"auth","payload":{"event":"parsingCallbackUrl","data":{"url":null},"message":"The callback url is being parsed"},"source":"Auth","patternInfo":[]}
Expected behavior
Receive the correct data to handle it.
Reproduction steps
Code Snippet
Log output
aws-exports.js
Manual configuration
No response
Additional configuration
No response
Mobile Device
Android
Mobile Operating System
11
Mobile Browser
Using react-native-inappbrowser-reborn
Mobile Browser Version
3.7.0
Additional information and screenshots
No response