简体   繁体   English

我可以在不将应用发布到Alpha或Beta的情况下测试应用帐单吗?

[英]Can I test In App Billing without publishing the app to Alpha or Beta?

This question is not a duplicate as Google has done some modifications as far as I am reading. 根据我所阅读的内容,此问题并非重复,因为Google已进行了一些修改。

I would like to test my app having in app billing without publishing the app to alpha or beta. 我想测试我的应用是否具有应用帐单功能,而无需将其发布为Alpha或Beta版。 Is that still possible? 那还有可能吗?

I've tried it while it's still in draft, I installed the same APK that I uploaded on my test device, and clicked the buy button to initiate a purchase, however, "Authentication is required...." dialog pops up. 我在草稿中尝试了一下,安装了与我在测试设备上上传的APK相同的APK,然后单击“购买”按钮开始购买,但是,弹出“要求验证...”对话框。

No. It is not "possible" but there is a trick. 不。这不是“可能”,但是有一个窍门。

You can use a release APK but Google needs to know the version of APK uploaded that enables IAB. 您可以使用发行版APK,但Google需要知道上传的启用IAB的APK版本。 For example, let's say your APK version code is 2. If Google can't find an APK code in Google Play with version code 2, then you can't test it. 例如,假设您的APK版本代码为2。如果Google在Google Play中找不到版本代码为2的APK代码,那么您将无法对其进行测试。 But, if you leave the APK code the same after uploading it to Google Play Alpha or Beta this can work. 但是,如果将APK代码上传到Google Play Alpha或Beta后仍保持不变,则可以使用。

You only need to upload an APK to ALPHA or BETA with the version code and IAB code with SKU configured, and use it in you device with code updates without changing the version code and version APK in gradle and use a release apk. 您只需将APK(配置了SKU的版本代码和IAB代码)上传到ALPHA或BETA,即可在设备中使用该代码进行更新,而无需更改gradle中的版本代码和APK,并使用发行版APK。

Add an account to test in your developer console for testing. 在开发人员控制台中添加一个要测试的帐户以进行测试。

You need to have the app in published status on alpha or beta. 您需要使该应用在Alpha或Beta上处于已发布状态。 Any reason why you want to keep it in draft and not publish it? 您为什么要保留其草稿而不发布它的任何理由? You can manage who can access the alpha apk through manage testers using googlegroup. 您可以使用googlegroup通过管理测试人员来管理谁可以访问Alpha APK。

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

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