Firebase Authentication is failing with “Developer Error” after uploading apk to google play store

不想你离开。 提交于 2019-12-07 21:28:13

问题


I am using Firebase Authentication for authenticating user in my application.

Everything was working fine till I was working on debug build of my application. But the moment I have uploaded the signed apk in playstore, my user authentication service always fails with "Developer Error" message.

On some web research, I find out that I need to generate SHA certificate for my signed apk also. I have generated SHA with locally created ".jks" file, which I have used to sign my application locally before uploading. I have added the generated SHA keys to firebase project console and generated new google-services.json file. Even this approach has not helped me.

I am suspecting that this is happening because I am using "Google Play App Signing (https://developer.android.com/studio/publish/app-signing.html)" which is again changing the certificate. Can anyone please help me and let me know what is the right process for updating SHA keys for release apk.

If play store is doing the app-signing, then how can it be the part of "google-services.json" where SHA keys must be mentioned beforehand?

Please help!!!


回答1:


Open App signing section in Google Play Console, and get SHA1 of app signing certificate




回答2:


if you are using local .jks file for signing, you dont need to google play app signing. after adding your .jsk file's fingerprint into firebase console. just sync it in android studio or try to run the app on your phone first after that build a new signed apk. Then upload it on playstore.



来源:https://stackoverflow.com/questions/46042343/firebase-authentication-is-failing-with-developer-error-after-uploading-apk-to

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!