简体   繁体   English

我需要先将我的应用发布为Alpha或Beta版本,然后才能公开发布以获得应用内购买功能吗?

[英]Do I need to publish my app to alpha or beta first before to public in order to get in-app purchase work?

I already published my app straight to the public 8 hours ago, but my my in-app purchase don't work at all. 我已经在8个小时前直接向公众发布了我的应用程序,但是我的应用程序内购买功能根本无效。 It says "Authentication is required. You need to sign into Google Account". 它显示“需要验证。您需要登录Google帐户”。

Do I have to wait longer or publish my app to alpha or beta channel first in order to get the in-app work? 我是否需要等待更长的时间或首先将我的应用发布到Alpha或Beta通道才能获得应用内功能?

Based on the document: Testing Your In-app Billing Application 基于文档: 测试您的应用内结算应用

To ensure that In-app Billing is functioning correctly in your application, you should test the application before you publish it on Google Play. 为了确保应用内结算在您的应用程序中正常运行,您应该先测试该应用程序,然后再将其发布到Google Play上。 Early testing also helps to ensure that the user flow for purchasing in-app items is not confusing or slow, and that users can see their newly purchased items in a timely way. 早期测试还有助于确保用户购买应用内商品的流程不会混乱或缓慢,并且用户可以及时查看其新购买的商品。

The Google Play Developer Console provides several tools that help you test your In-app Billing implementation: Google Play开发者控制台提供了多种工具,可帮助您测试应用内结算实施:

To test in-app billing, you need to publish your app to an alpha or beta channel in Google Play. 要测试应用内结算,您需要将应用发布到Google Play中的Alpha或Beta频道。

After you publish an app to an alpha or beta channel, it can take a few hours for the app to be available for testers. 将应用发布到Alpha或Beta通道后,测试者可能需要花费几个小时才能使用该应用。 The version code of an APK on a test device must match the version currently uploaded to the alpha or beta channel on Google Play. 测试设备上APK的版本代码必须与当前上传到Google Play上的Alpha或Beta频道的版本匹配。

Also, it would be helpful to check if you have properly implemented In-app Billing with this links: 另外,通过以下链接检查您是否已正确实施应用内结算,这将很有帮助:

Important : Apps using in-app products must declare the com.android.vending.BILLING permission in their APK manifest file. 重要提示 :使用应用内商品的应用必须在其APK清单文件中声明com.android.vending.BILLING permission Without the com.android.vending.BILLING permission, developers can only manage existing in-app products using the Google Play Developer Console and any attempts by the app to make In-app Billing purchases will fail. 没有com.android.vending.BILLING权限,开发者只能使用Google Play开发者控制台管理现有的应用内商品,并且该应用进行应用内结算购买的任何尝试均将失败。

Hope this helps! 希望这可以帮助!

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

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