Google Sign In not working after published in playstore

浪尽此生 提交于 2020-01-03 14:17:33

问题


Before publishing in the play store my google sign was working fine. I saw some questions here in stackoverflow, but none of them answered my question. I don't know why the login is not working anymore. (I'm not using firebase).

I did all the steps to make the google sign work, and it was working before I published. Anyone knows what is happening? What can I do?


回答1:


This is due to different SHA1 keys for debug and release version.

The thing is that for google sign in you must add SHA1 key in your google account which you can get from programming or from command prompt.

SHA1 key is different for signed apk. So you have two SHA1, one each for debug and release version. The SHA1 for release version can be obtained from keystore file.

if you want to read more about this you can check this link. It is very well explained there.




回答2:


As per @Jan Lovšin stated, maybe you're using same .keystore for your debug and release APKs. Be noted that you need to create two key store - debug.keystore(for debug) and release.keystore (for publish application). You may follow this thread for detailed explanation. You may also check on this related SO question. Hope this helps!



来源:https://stackoverflow.com/questions/41029903/google-sign-in-not-working-after-published-in-playstore

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