简体   繁体   中英

Android app SHA-1 authentication fail firebase

My friend and I created an app and uploaded the APK on google play store. Some of our friends downloaded the app to try it, but they weren't able to register (using firebase number and/or email login). The error code says there's a problem with the SHA-1. So we disabled the app on google store, and when I launch the app now (already installed from play store) it works perfectly! So I think that when the app is activated on the store, we have problems! Any idea?

Welcome Otto, You are getting this problem because your authentication is not well set. You happen to have no issues since you are using a debug version with a debug SHA-1 key, you should generate a new key for the release version and upload it on firebase. The SHA-1 key during debug mode is different from the release mode.

There are different keys used for building your app, debug key and release key. The app you have installed on you phone is I think uses debug key which you have already registered with firebase, for you play store app to work you must also register release key you used to publish the app at play store (if you have used you own key at play store use that one or use a key that provided by google play store for signing the app).

Hope it helps.

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