Android FirebaseUi Auth Does Not Prompt Google Account Selection during Sign In

March 31, 2019

If you are using FirebaseUI for Firebase Auth, you might bump into issue where Google signin always automatically signin using the previously selected account, without prompting for account selection after you signout.

NOTE: I didn’t have this issues on Xiaomi Mi4i Android 5 (Lollipop), but it is persistent on Samsung S9 Android 8 (Oreo).

You need to disable SmartLock when creating AuthUI intent.

val providers = arrayListOf(
    // AuthUI.IdpConfig.EmailBuilder().build(),

val intent = AuthUI.getInstance()
    // .setIsSmartLockEnabled(false, true)
startActivityForResult(intent, REQUEST_SIGN_IN)

When signout, you should use AuthUI.getInstance().signOut rather than FirebaseAuth.getInstance().signOut.

// FirebaseAuth.getInstance().signOut()


This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.