For my android app I am using google firebase auth, the problem is after uninstall and reinstall the app it is still skip the login page and have the session, I am using android 7, I cleaned the backup according to the answer here by adding android:allowBackup="false" and android:fullBackupContent="false" in manifest.xml
but it did not help. Any one can help on this?
Asked
Active
Viewed 502 times
1
1 Answers
1
In the Firebase Auth Quickstart sample code, the sign-out for Google provider includes these steps. Make sure you calling Auth.GoogleSignInApi.signOut() along with firebase's .signOut() when you sign-out.
private void signOut() {
//Firebase
mAuth.signOut();
//Google
Auth.GoogleSignInApi.signOut(mGoogleApiClient).setResultCallback(
new ResultCallback<Status>() {
@Override
public void onResult(@NonNull Status status) {
updateUI(null);
}
});
}
iamgopal
- 634
- 5
- 12
-
I do not have any signout but it should not be normal practice when someone uninstall the app it does not sign in automatically when reinstall? – Mehran Feb 21 '18 at 07:57
-
This was introduced by Google to improve the user experience. – iamgopal Feb 21 '18 at 09:29
-
What you need to research is how to prevent Google sign-in from auto-picking the user account. – iamgopal Feb 21 '18 at 09:57