android - 在应用计费相同的版本要求

标签 android in-app-purchase in-app-billing google-play

最终发布的应用是否需要与测试应用相同的应用内结算版本:

the version number of the uploaded application must match the version number of the application you load to your device for testing

http://developer.android.com/guide/google/play/billing/billing_testing.html

例如,如果使用旧应用版本的用户无法付费将他们的演示游戏解锁为完整模式,这将是一个问题。

如果是这种情况,那么无论谁尝试解锁他的演示游戏,都应该在购买前收到先下载最新版本的消息,而不是错误消息,例如:

"Application Error : This version of the application is not configured for Market Billing. Check the help center for more information."

关于处理此问题的最佳方法有什么建议吗?

最佳答案

每次我发布新版本的应用程序时,我都会抛出这个。解决方案很简单 - 只需上传 apk与您现在正在测试的版本相同的文件(具有 BILLING 许可,使用您的发布证书签名)作为 草稿 到您的 Google Play Developer Console .为此,请在 Developer Console 的应用列表中点击您的应用名称,点击“APK 文件”选项卡,然后点击“上传 APK”按钮,选择您的新 apk从本地计算机上传它,然后在上传对话框中单击“保存”按钮,不要忘记单击“编辑应用程序”页面右上角的另一个“保存”按钮。

之后,您将在“APK 文件”选项卡中看到两个部分 - ActiveNew。在您新上传的 apk 附近会有一个“激活”链接还。但在您准备好发布新的 apk 之前,请不要点击它。给用户。

请注意,您可能需要等待几个小时,直到新版本的apk将变为 Activity 状态,“此版本的应用程序未配置为市场计费”错误消息消失。

关于来自官方来源的证明 - 此信息显示在您在问题中提供的链接中:

Upload your application as a draft application to the publisher site. You do not need to publish your application to perform end-to-end testing with real product IDs; you only need to upload your application as a draft application. However, you must sign your application with your release key before you upload it as a draft application. Also, the version number of the uploaded application must match the version number of the application you load to your device for testing. To learn how to upload an application to Google Play, see Uploading applications.

根据我自己的经验,我可以肯定这种方法是有效的。

即使您发布了新版本的 apk,使用旧版应用的用户仍然可以使用您的应用,并且仍然可以购买应用内购买。 .

关于android - 在应用计费相同的版本要求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12501391/

相关文章:

android - 新的 Android Eclipse 版本无法进入工作区

java - 从身份验证后的 Web 获取 XML

iphone - 正确存储应用内购买

android - 无法在没有互联网连接的情况下查询库存

android - 在应用计费中实现哪种方式?

android - 如何为 Android 上的大型设备设置一个按钮?

android - 使用导航架构组件时在 Activity 和 Fragment 之间进行通信

iphone - 应用内购买产品 ID

javascript - 取消事务时在后续 storekit.init 上出现多个 "Cannot connect to iTunes store"消息 -Cordova/Phonegap

android - 在设备离线时 checkin 应用程序购买