在使用上传密钥签名的应用上测试Google Play游戏 [英] Test Google Play Games on app signed with upload key

查看:279
本文介绍了在使用上传密钥签名的应用上测试Google Play游戏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我目前正在使用Unity构建的应用程序上测试Google Play游戏的功能.我选择了Google的应用签名,并且只能访问上传的密钥库. 有没有一种方法可以使用上载密钥签名的应用程序版本连接到Google Play游戏,这样我就不必每次都要进行测试时都部署我的应用程序?

I am trying to test the functionality of google play games on the app I am currently building with Unity. I have opted for the Google's app signing and have access to only the upload Keystore. Is there a way to connect to google play games with a version of the app signed by the upload key so that I don't have to deploy my app everytime I want to test it?

推荐答案

尽管这不是理想的工作流程,但是您可以将APK(使用上传密钥签名)上传到内部或封闭的测试轨道,然后再下载Google签名的APK(可从测试轨道获得).不幸的是,即使测试轨迹的传播也可能需要长达两个小时的时间,但是您将获得一个具有正确签名的APK,以成功通过Google API进行身份验证.我相信,即使我也没有亲自测试过,即使也使用Android App Bundle,这也能奏效.

Though it's not the ideal workflow, you can upload an APK (signed with your upload key) to an internal or closed test track, and then download the Google re-signed APK when it's available from the test track. Unfortunately, even test track propagation can take up to two hours, but you'll get an APK that has the proper signature to successfully authenticate with Google APIs. I believe this will work if using Android App Bundles as well, though I haven't tested that myself.

如果您只需要Google Play游戏身份验证/登录即可工作,则可以添加其他OAuth 2证书指纹,如有关如何在Google签名的应用中使用上传密钥的答案.但是,并非所有的Google Play游戏服务都能正常运行.

If you only need Google Play Games auth/sign-in to work, you can add an additional OAuth 2 certificate fingerprint, as described in this answer on how to use the upload key with a Google-signed app. However, not all Google Play Games services will work properly.

可能最可持续的工作流程是遵循此答案与如何禁用Google App签名( 剧透警报:不能将其禁用),即在Google Play上创建一个新的/克隆的应用,其设置与原始设置相同,但标识符不同,例如包ID和Google播放服务应用ID.当然,至关重要的是,您选择退出此克隆应用程序的Google App签名.另外,在上传到真实/实际应用之前,请不要忘记重置为测试而更改的所有标识符.

Probably the most sustainable workflow, is to follow the suggestion in this answer related to how to disable Google App Signing (spoiler alert: it cannot be disabled), which is to create a new/clone app on Google Play, with all of the same settings as the original, but a different identifiers, such as bundle ID and Google Play Services app ID. Of course, it's critically important that you opt-out of Google App Signing for this clone app. Also, don't forget to reset any identifiers you changed for testing before you upload to your real/actual app.

这篇关于在使用上传密钥签名的应用上测试Google Play游戏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆