I'm wondering specifically what kind of events (other than signing out and possibly disabling an account) that would end the lifetime of an anonymous sign-in.
Does it work the same was as with react native, as this answer: https://stackoverflow.com/a/46143694 ?
You don't need to set persistence. Firebase handles it for you by default. You just need to call this function to check whether user is logged or not:
firebase.auth().onAuthStateChanged((user) => { if (user) { console.log('user is logged'); } } This will not be triggered only if user has sign out or cleaned app data.
Can I rely on the anonymous sign-in to persist unless the user signs out, is disabled, or the app is uninstalled?