I'm creating an Activity to allow an user custom registration (simply nick name and pw) or by Google sign.
If the user choses Google, I call mFirebaseAuth.SignInWithGoogle; even if he selects a his google account, in the Activity_Resume CurrentUser results not yet initialized. I don't think that I should add a Sleep(x) in the Resume, because x should have an arbitrary value, not efficient (and probably this would not work).
How should I do?
Thank you
If the user choses Google, I call mFirebaseAuth.SignInWithGoogle; even if he selects a his google account, in the Activity_Resume CurrentUser results not yet initialized. I don't think that I should add a Sleep(x) in the Resume, because x should have an arbitrary value, not efficient (and probably this would not work).
How should I do?
Thank you
Last edited: