Skip to content

FirebaseAuthentication addListener does not listen #532

Closed Answered by robingenz
FrancescoIoppolo asked this question in Q&A
Discussion options

You must be logged in to vote

I'm trying to find a method to listen to a user's changes in fierbase.

Your approach is correct. addListener('authStateChange', ...) is the right method.
Attention: If you also use the Firebase JS SDK on Android and iOS, then you must use the listener from the Firebase JS SDK.

Example: If I delete the user from inside the firebase console nothing happens in my app.

Yes, this is because the Firebase SDK does not call this listener in this case, see this SO answer.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by robingenz
Comment options

You must be logged in to vote
1 reply
@robingenz
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants