You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the firebase_auth library to authenticate anonymously with Firebase using the following code:
However, when I uninstall the application and run this code after reinstalling:
var auth =awaitFirebaseAuth.instance.signInAnonymously();
_appId = auth.user!.uid;
On Android: I receive a new user ID.
On iOS: I receive the previous user ID from the previous installation.
How can I achieve consistent behavior across both platforms, either receiving a new user or recovering the previous user?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm using the firebase_auth library to authenticate anonymously with Firebase using the following code:
However, when I uninstall the application and run this code after reinstalling:
On Android: I receive a new user ID.
On iOS: I receive the previous user ID from the previous installation.
How can I achieve consistent behavior across both platforms, either receiving a new user or recovering the previous user?
Beta Was this translation helpful? Give feedback.
All reactions