-
Notifications
You must be signed in to change notification settings - Fork 550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getIdentityId() returns null the first time after Sign In in Android, crashes app but if reopened behaves normally #1510
Comments
Any updates regarding this issue? |
Why aws-amplify DELETING COMMENTS ?? |
Hi, @Diegolotr99. I condensed some information back into the original post, that's all. Cheers. |
Hi @jamesonwilliams , Cheers. Still looking for any help here -> aws-amplify/amplify-android#962 |
@Diegolotr99 Please do not spam unrelated issues, to advertise your other issues. That creates noise for folks who are trying to follow this ticket. If you have additional relevant details to provide to either GitHub issue, please do so. Feel free to join our Discord server if you need additional help. https://discord.gg/amplify |
HI @abhidaa1233 please advise if this is still an issue as this github issue is quite old. Please try with the latest libraries. If this is still happening we will do a deep dive and fix it. |
Describe the bug
getIdentityId()
returnsnull
the first time after signing in. This willcrashes the app. But when the app is reopened, things behave normally.
Here's the code that I have tried:
Had to start a new thread as it was giving error about using the main thread.
Another thing I tried:
Here's the error that shows up in Logcat:
I get this same result every time.
Expected behavior
Normal, smooth login
Desktop (please complete the following information):
Thank you for your valuable time.
Update:
Actually, the issue is that the identity ID I am getting from these methods
calls the
getIdentityId()
2 or 3 times within few seconds. If it is called 3times, then one time it mostly comes
null
. One is right, and one is wrong.This crashes the app, but when restarted it behaves normal. I somehow took the
ID in a
final
String and it's currently works but please solve the bug.Thank you.
The text was updated successfully, but these errors were encountered: