java - App发布版本中登录配置问题

标签 java android google-play-services

我有这个应用程序,它使用配置有调试 key 的 SHA1 的 Google 服务 json 文件,然后使用新 key 构建签名版本,并使用该 release.apk 来安装该应用程序。但登录部分现在在应用程序的发布版本中无法正常工作。

所以现在我的问题是,是否应该使用签名 key 的 SHA1 配置 Google 服务 json 文件?忽略格式,因为我是在移动设备上使用它。

最佳答案

基于文档:设置 Google Play 游戏服务

指定客户端 ID 设置

You should create two client IDs, one with the release certificate fingerprint and another with the debug certificate fingerprint. Make sure to use the same package name for both. This allows Google Play games services to recognize calls from your linked APKs that are signed with either certificate. For more information about certificate signing for Android, see Signing Your Application.

检查这个SO post ,讲了debug版本和release版本的clientID的区别。最后查看文档:Prepare for ReleaseSign Your App了解准备发布应用程序的详细说明。

关于java - App发布版本中登录配置问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42106739/

相关文章:

java - 我应该如何将 List<Observable<T>> 压缩为 Observable<List<T>> ?

java - 嵌入式 Neo4j SPI 类 (lucene PostingsFormat) 错误

java - 如何传递一个类型的值并将其转换为另一种类型?

android - Activity onDestroy()方法中是否需要设置variable = null?

android - Applovin AdclickListener 无法在 Android 中工作

java - 在同一个锁上同步

android - GCM-App 真的需要唤醒锁吗?

android - 多人等候室超过 2 名玩家时不显示已连接的玩家

android - gradle Android studio : "Cannot invoke method get() on null object" 错误

unity-game-engine - Unity - 无法编译具有以下参数的资源 :