简体   繁体   English

Android应用程式SHA-1验证失败Firebase

[英]Android app SHA-1 authentication fail firebase

My friend and I created an app and uploaded the APK on google play store. 我和我的朋友创建了一个应用,并将APK上传到了Google Play商店。 Some of our friends downloaded the app to try it, but they weren't able to register (using firebase number and/or email login). 我们的一些朋友下载了该应用程序以进行试用,但他们无法注册(使用Firebase号和/或电子邮件登录)。 The error code says there's a problem with the SHA-1. 错误代码表明SHA-1存在问题。 So we disabled the app on google store, and when I launch the app now (already installed from play store) it works perfectly! 因此,我们在Google Store上禁用了该应用程序,当我现在启动该应用程序(已从Play商店安装)时,它可以完美运行! So I think that when the app is activated on the store, we have problems! 因此,我认为在商店中激活该应用程序时,我们会遇到问题! Any idea? 任何想法?

Welcome Otto, You are getting this problem because your authentication is not well set. 欢迎奥托,您收到此问题,因为您的身份验证设置不正确。 You happen to have no issues since you are using a debug version with a debug SHA-1 key, you should generate a new key for the release version and upload it on firebase. 您碰巧没有问题,因为您使用的是带有调试SHA-1密钥的调试版本,因此应该为发行版本生成一个新密钥,并将其上载到Firebase。 The SHA-1 key during debug mode is different from the release mode. 调试模式期间的SHA-1密钥与释放模式不同。

There are different keys used for building your app, debug key and release key. 有多种用于构建应用程序的密钥,调试密钥和发行密钥。 The app you have installed on you phone is I think uses debug key which you have already registered with firebase, for you play store app to work you must also register release key you used to publish the app at play store (if you have used you own key at play store use that one or use a key that provided by google play store for signing the app). 我认为您已在手机上安装的应用程序使用已在Firebase中注册的调试密钥,为了使商店应用程序正常工作,您还必须注册用于在Play商店中发布应用程序的发布密钥(如果您曾经使用过Play商店自己的密钥可使用该密钥或使用Google Play商店提供的密钥对应用进行签名)。

Hope it helps. 希望能帮助到你。

暂无
暂无

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

相关问题 获取适用于Android Firebase的SHA-1 - Get SHA-1 for Android Firebase SHA-1 Android Firebase键盘工具 - SHA-1 Android Firebase keytool 此应用无权使用 Firebase 身份验证。请验证 Firebase 中是否配置了正确的包名称和 SHA-1 - This app is not authorized to use Firebase Authentication.Please verify that the correct package name and SHA-1 are configured in the Firebase 此应用无权使用 Firebase 身份验证。 验证是否在 Firebase 控制台中配置了正确的包名称和 SHA-1 - This app is not authorized to use Firebase Authentication. Verify that the correct package name and SHA-1 are configured in the Firebase Console 此应用无权使用 Firebase 身份验证。 请确认在 Firebase 中配置了正确的 package 名称和 SHA-1 - This app is not authorized to use Firebase Authentication. Please verify that the correct package name and SHA-1 are configured in the Firebase 此应用未被授权使用 Firebase 身份验证。请验证是否在 Firebase 控制台中配置了正确的 package 名称和 SHA-1 - This app is not authorized to use Firebase Authentication.Please verify that the correct package name and SHA-1 are configured in the Firebase Console 应用索引和使用SHA-1签名的Android应用 - App Indexing and signed Android App with SHA-1 与Firebase中的SHA-1混淆 - Confusion with SHA-1 in Firebase Android / Firebase调试签名证书SHA-1的用途 - Purpose of Android/Firebase Debug signing certificate SHA-1 Android Firebase动态链接设置-SHA-1无法识别 - Android Firebase Dynamic Links setup - SHA-1 not recognized
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM