com.firebase.ui.auth.FirebaseUiException: There was an error while trying to get your package certificate hash.
See original GitHub issueStep 1: Are you in the right place?
Yes
Step 2: Describe your environment
- FirebaseUI version: 7.1.1
Step 3: Describe the problem:
I get error reports from Sentry that look like this. This appears to be part of the automated build validation stuff that the Play store runs (I don’t have any espresso tests in my codebase). Is there any way we could have this exception be a different type? Or have a unique+known error code so I can filter it out?
Firebase auth error (code=0)
com.firebase.ui.auth.FirebaseUiException: There was an error while trying to get your package certificate hash.
at com.google.android.gms.internal.firebase-auth-api.zzto.zza(com.google.firebase:firebase-auth@@21.0.1:26)
at com.google.firebase.auth.internal.zzav.onReceive(com.google.firebase:firebase-auth@@21.0.1:19)
at androidx.localbroadcastmanager.content.LocalBroadcastManager.executePendingBroadcasts(LocalBroadcastManager.java:313)
at androidx.localbroadcastmanager.content.LocalBroadcastManager$1.handleMessage(LocalBroadcastManager.java:121)
at android.os.Handler.dispatchMessage(Handler.java:106)
at androidx.test.espresso.base.Interrogator.loopAndInterrogate(Interrogator.java:10)
at androidx.test.espresso.base.UiControllerImpl.loopUntil(UiControllerImpl.java:7)
at androidx.test.espresso.base.UiControllerImpl.loopUntil(UiControllerImpl.java:1)
at androidx.test.espresso.base.UiControllerImpl.loopMainThreadForAtLeast(UiControllerImpl.java:8)
at androidx.test.espresso.action.Tap$1.sendTap(Tap.java:4)
at androidx.test.espresso.action.GeneralClickAction.perform(GeneralClickAction.java:4)
at androidx.test.espresso.ViewInteraction$SingleExecutionViewAction.perform(ViewInteraction.java:2)
at androidx.test.espresso.ViewInteraction.doPerform(ViewInteraction.java:19)
at androidx.test.espresso.ViewInteraction.access$100(ViewInteraction.java:1)
at androidx.test.espresso.ViewInteraction$1.call(ViewInteraction.java:2)
at androidx.test.espresso.ViewInteraction$1.call(ViewInteraction.java:1)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6718)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Firebase Auth on a project other than the one the Android ...
There was an error while trying to get your package certificate hash. Is there a way to keep the projects added on the...
Read more >Migrate from Google Identity Toolkit to Firebase Authentication
After successfully signing in with Firebase, get a Firebase ID token by calling firebase.auth().currentUser.getToken() . Send the Firebase ID token to the ...
Read more >How to add Firebase Authentication into your Android App ...
Under Certificate Fingerprints you will see your SHA-1 hash. Highlight it and right click it to copy it. Then head back to Firebase...
Read more >Easily add sign-in to your Android app with FirebaseUI - Google
FirebaseUI is a library built on top of the Firebase Authentication SDK that provides drop-in UI flows for use in your app. FirebaseUI...
Read more >firebaseui - npm
It also handles cases like account recovery and account linking that can be security sensitive and error-prone to handle. FirebaseUI Auth ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok we can add this to the list of known exceptions I think, although you should probably also try to find out where that strangely signed APK comes from!
It’s definitely some sort of Play Store validation (maybe the pre-launch report?). The app is sideloaded (
packageManager.getInstallerPackageNameis null).I use App Signing in the play store so I thought maybe the Play Store was trying to test out the uploadKey-signed app. Tried adding the upload key SHA-1/SHA-256 to the firebase app config, but that didn’t help.
Maybe Play Store is taking the aab I upload and extracting the apks with some different signing key?
bundletooluses the debug signing key by default, maybe that’s the problem?Anyway it’d be rad if I could filter these exceptions out somehow. The build I uploaded has functioning authentication.