[英]Flutter Firebase GoogleSignIn doesn't work in release
I am developing flutter application with firebase, which has Google Sign In feature.我正在使用具有 Google 登录功能的 firebase 开发 flutter 应用程序。 The problem is my android app does not work with error: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null)
, despite my iOS app is doing great. The problem is my android app does not work with error: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null)
, despite my iOS app is doing great.
I followed some answers of this Google sign in doesn't work after release of flutter app and that instruction https://developers.google.com/identity/sign-in/android/start-integrating#prerequisites .在发布 flutter 应用程序和该指令https://developers.google.com/identity/sign-in/android/start-integrating#prerequisites 后,我遵循了一些关于此 Google 登录不起作用的答案。
Which are:哪个是:
Firebase Console > Project Settings
在 Play Store 中复制 SHA-1 证书指纹并将其粘贴到Firebase Console > Project Settings
build.gradle
设置build.gradle
Thank you for your help谢谢您的帮助
Actually SHA1 keys are different for debug and release apks实际上 SHA1 密钥对于调试和发布 apk 是不同的
Add sha1 key of released version in firebase console your problem will be solved for sure在 firebase 控制台中添加已发布版本的 sha1 密钥,您的问题肯定会得到解决
If your apk is published in playstore get the sha1 key from google play console and paste it in firebase如果您的 apk 在 playstore 中发布,请从 google play 控制台获取 sha1 密钥并将其粘贴到 firebase
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.