-
Notifications
You must be signed in to change notification settings - Fork 1.9k
App crashing when signing in after integrating firebase ui on few devices #1181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This issue means that In The error begins in |
I'm also seeing this crash, and it seems to stop if I remove My sign-in intent: authUI.createSignInIntentBuilder()
.setAvailableProviders(authBuilders().map { it.build() })
.setTheme(R.style.AppTheme_SignIn)
.setLogo(R.drawable.logo_signin)
.build()
private fun authBuilders() = listOf(
AuthUI.IdpConfig.EmailBuilder(),
AuthUI.IdpConfig.GoogleBuilder(),
AuthUI.IdpConfig.PhoneBuilder()
) Environment: Samsung Smart Lock triggers as soon as I open my app, and attempts to log in with that user, at which point the app crashes the the OP's stacktrace. |
@btilbrook-nextfaze thanks for this, so are you saying this happens for you every time if you pick a Google credential from smartlock? |
It's not getting as far as offering a selection of credentials to pick from. It's just automatically attempting to sign-in as the single Google account on the device. I'm not sure what part of Smart Lock is in effect, since none of the Smart Lock options are enabled in Settings (no home address set either). |
I've disabled auto sign-in in Smart Lock for Passwords settings on the account, but now I'm getting a different crash:
|
@btilbrook-nextfaze And you're using the latest version of FirebaseUI? It's really weird that it happens to you every single time. Some good news though, I'm working on killing the |
Indeed, I'm using |
Ok, it seems perhaps disabling auto-sign in in Smart Lock for Passwords had a delay. The crash has now stopped, so that seems to suggest the crash only happens when auto sign-in in enabled. |
Found error just like @btilbrook-nextfaze Detail error : |
This issue has been fixed and released in |
Step 1: Describe your environment
Step 2: Describe the problem:
After integrating firebase ui, it works perfectly on my devices but i am getting app crashes on fabric and not sure why it is coming. I tried to look at the existing issues here but none of them resolved it.
Observed Results:
App crashed with below log -
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'android.support.v4.app.FragmentManager android.support.v4.app.FragmentActivity.getSupportFragmentManager()' on a null object reference
at com.firebase.ui.auth.util.signincontainer.IdpSignInContainer.signIn(IdpSignInContainer.java:58)
at com.firebase.ui.auth.util.signincontainer.SignInDelegate.redirectToIdpSignIn(SignInDelegate.java:344)
at com.firebase.ui.auth.util.signincontainer.SignInDelegate.startAuthMethodChoice(SignInDelegate.java:258)
at com.firebase.ui.auth.util.signincontainer.SignInDelegate.onComplete(SignInDelegate.java:152)
at com.google.android.gms.tasks.zzf.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:7406)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Expected Results:
App should not crash
The text was updated successfully, but these errors were encountered: