Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase anonymous will persist when app update?

I create anonymous user in my iOS app and I wonder if when the app update, the User anonymous session will persist or not? Because app is deleted but not everything when updating an app (UserDefault persists for example)

like image 926
user2434385 Avatar asked Feb 16 '26 05:02

user2434385


1 Answers

The Firebase Authentication user will remain signed in when you update the app. I recommend that you test this: any time you rebuild-and-reinstall the app from Android Studio is essentially what an upgrade through the Play store does.

When you uninstall the app, the Firebase Authentication user data is deleted too. When using anonymous authentication, this means that the UID is lost and cannot be reclaimed after reinstalling the app. If it is a requirement for your app that the user can continue after uninstall/reinstall, you should allow them to sign in with credentials that they can repeat across such a reinstall (i.e. any other provider where they actually identify themselves).

like image 192
Frank van Puffelen Avatar answered Feb 18 '26 17:02

Frank van Puffelen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!