gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 08:54:49 25 4
gpt4 key购买 nike

我有这个应用程序,它使用配置有调试 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com