google signin not working with production apk on playstore.(release apk on playstore)

Piy*_*wal 6 authentication android release google-signin

Actually Google sign-in is working in debug mode but when i upload the apk on playstore,it is not working.

I made a new google project in google console. There i enable the google+ signin api. After that same project was open in firebase where it ask for sha1 key which i entered. everything is working fine in debug mode but release is creating problem in google signin.

I am uploading the pic of my google console with firebase

Please help

在此处输入图片说明

小智 5

我遇到了同样的问题,但很好地解决了它,如果您想添加一个,则与电话验证相同。

截至2021 年 6 月 23 日的解决方案工作人员:

  1. 转到您的 Google Play 控制台并选择您的应用程序。
  2. 转到发布->设置->应用程序完整性->应用程序签名密钥证书。
  3. 找到 SHA-1 证书并复制它。SHA-256 证书也是如此。
  4. 转到您的 Firebase 控制台并选择您的应用程序。
  5. 转到项目设置并添加复制的 SHA-1 证书和 SHA-256 证书。您应该能够再次使用 Google 或电话登录。无需重新上传 apk/aab 应用程序到 Play 商店。


小智 0

您应该使用与获取 sha1 密钥相同的 key.store 文件来生成“签名 APK”。