简体   繁体   English

Flutter Firebase 谷歌登录发布版本

[英]Flutter Firebase Google sign in with release version

I am able to login to Google with my Flutter Firebase app in debug mode where I have signed the app with the debug key.我可以在调试模式下使用我的 Flutter Firebase 应用程序登录 Google,我已使用调试密钥对应用程序进行了签名。

Now, my app just got released on Play Store and it is signed in with the release key.现在,我的应用刚刚在 Play Store 上发布,并使用发布密钥登录。 But, the app from Play Store - I am not able to sign in with Google.但是,来自 Play 商店的应用程序 - 我无法使用 Google 登录。 I have SHA1 entered in Firebase but I guess the issue might be the SHA1 is debug SHA1 and it might not be working with the release version of my app.我在 Firebase 中输入了 SHA1,但我想问题可能是 SHA1 是调试 SHA1,它可能不适用于我的应用程序的发布版本。 What needs to be done?需要做什么?

Something similar happened with me, I reconfigured Firebase with Flutter and also added my payment details in firebase类似的事情发生在我身上,我用 Flutter 重新配置了 Firebase 并在 firebase 中添加了我的付款详细信息

I would suggest that you do the same and update the application.我建议您也这样做并更新应用程序。

I just figured it out - and if it can be helpful to you or future viewers...you need to add Google's SHA1 and SHA256(optional) keys into your firebase project.我刚刚弄清楚了——如果它对您或未来的观众有帮助……您需要将 Google 的 SHA1 和 SHA256(可选)密钥添加到您的 firebase 项目中。 And it works just like how I wanted...它就像我想要的那样工作......

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM