Android Question Question about FirebaseAuth

D

Deleted member 103

Guest
Hi,

if a user clicks the back button during authentication and aborts the authentication, can the back button or cancel be intercepted?
If yes, how?

signin.png
 

LucaMs

Expert
Licensed User
Longtime User
There is no event in this case. You might be able to use Activity_Resume to find it.
He might, maybe, me not :D:(:p

I'm creating an Activity to allow an user custom registration (simply nick name and pw) or by Google sign in (I hope that after the registration, I can simply store locally an UID - Google or custom - and then forget all this stuff, reading the UID on Starter_Create).

If the user choses Google, I call mFireBaseAuth.SignInWithGoogle; even if he selects a his google account, in the Activity_Resume the 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?
 
Upvote 0
Top