测试的Andr​​oid应用内购买与未公开的应用程序 [英] Testing Android In-App purchases with unpublished apps

查看:146
本文介绍了测试的Andr​​oid应用内购买与未公开的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 AndroidBillingLibrary 实现应用内购买了我的比赛。

I'm using AndroidBillingLibrary to implement in-app purchases for my game.

我已经做了以下内容:

  • 加了我从市场的公钥来我的应用程序
  • 上传我的签署,并在应用程序启动 - 采购 - APK市场(未发表)
  • 创造了市场控制台应用程序内的项目(未发表)
  • 添加测试用户帐户,以我的个人资料

现在的测试帐户,我开始我的比赛,并尝试做一个应用程序内购买。我得到了市场的屏,我可以看到该项目的详细信息(因此市场并识别项目ID,因为这些细节只有在市场,而不是在我的游戏),但后来我得到一个弹出,上面写着您试图将项目购买也不会被发现。 ,我回到了我的比赛。

Now with the test account I start my game and try to make a in-app purchase. I get the market screen and I can see the item details (so market does recognize the item id because those details are only in the market, not in my game) but then I get a pop up that says "The item you were attempting to purchase could not be found." and I'm returned to my game.

现在此页面告诉我说,此外,测试帐户可以在产品列表购买物品只在项目发布的应用程序并不需要被发布,但项确实需要出版。

Now this page tells me that "Also, a test account can purchase an item in your product list only if the item is published. The application does not need to be published, but the item does need to be published."

但市场控制台告诉我:

应用程序内的产品将出现UNPUBLISHED,直到拥有应用程序发布,此时应用内商品的出版状态适用。

"An in-app product will appear UNPUBLISHED until the owning application is PUBLISHED, at which point the in-app product's publishing state applies."

所以我不能改变在应用程序项目发布我的游戏(我不想做的还)之前公布。

So I can't change in-app items to published before publishing my game (which I don't want to do yet).

如何测试购买在应用程序项目不发表我的游戏?

How can I test buying in-app items without publishing my game?

推荐答案

您需要提供公共密钥(base64En codedPublicKey)在您的安全类,你在你的开发给予account..Also你必须是相同的发布您的产品,即使该应用程序还没有公布(即保存为草稿应用)。

You need to give public key (base64EncodedPublicKey) in Your security class which must be same as you given in your developer account..Also you have to publish your product even if the app is not yet published(that is saved as draft application)..

这篇关于测试的Andr​​oid应用内购买与未公开的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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