Persist user on App Reinstall with Firebase
问题 When a user deletes and reinstalls my app, I want their anonymous user account to persist. My iOS app is working as expected, but Android is not. I create anonymous users like so if (auth.getCurrentUser() == null) { auth.signInAnonymously().addOnCompleteListener(task -> {}); } When I delete the app and reinstall, auth.getCurrentUser() is null and I have to re-authenticate. My AndroidManifest.xml contains android:allowBackup="true" 回答1: It is null becase Firebase Anonymous Authentication