简体   繁体   中英

Android app not working after published to Play Store

How can I fix firebase authentication error? I generated a release APK of my app and it works fine on devices users can login as they should.

Then the problem occurs when I have published the very same working APK on the play store and I install from there (playstore). I get the error that

the app is not authorised to use firebase Authentication. please verify that the package name and SHA1 are configured in the firebase console

I fixed it after hours of a headache.

When you publish your apk to the play store, you get assigned with a singing certificate SHA1. That you have to add to your firebase console.

I just fixed the same issue. In my case, i had signed my APK and had added the SHA-1 to my Firebase Authentication. But while publishing to Play Store i have opted in for Google Play App Signing. And when we create a release in Play Console, Google replaces the Release Signing Key with Google's maintained key.

The Google Key's SHA-1 can be found in Release Management - App Signing - App Signing Certificate in your Google Play Console. You will need to add that key's SHA-1 to your Firebase Authentication. And it will work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM