How to test in-app-purchases easily, without publishing or signing it first?(如何轻松测试应用内购买,而无需先发布或签名?)
问题描述
我的应用有一些应用内结算(例如 这个),我希望在发布之前对其进行测试.
My app has some in-app billing (like this one), and I wish to test it out before publishing it.
我看了一些 google IO 讲座并阅读了一些文章,并准备了一切.
I've watched some google IO lectures and read some articles, and prepared everything.
根据我了解到的(谈到 这里),我需要做的只是将我的电子邮件添加到测试帐户,它不会被收费.
According to what i've learnt (talked about here), all I need to do is just add my email to the test accounts, and it won't be charged.
似乎在开发者控制台中,无法激活应用内项目.
It seems that in the developer console, the in app items cannot be activated.
我认为这是因为该应用尚未发布,但这就是测试的重点 - 我想在发布之前测试该应用...
I think it's because the app isn't published yet, but that's the whole point of testing - I want to test the app before publishing it...
正如我还发现的那样,为了测试应用内结算,我必须做很多事情才能让它发挥作用,同时也有很多限制和烦恼:
As I've also found out, in order to test in-app billing, I have to do a lot of things to take care of for making it work, also having many restrictions and annoyances:
签署应用程序并将其上传到 Play 商店.如果你不使用签名的应用程序,你会得到 此消息(此版本的应用程序未配置市场计费...").
sign the app and upload it to the play store . if you don't use a signed app, you get this message ("This version of the application is not configured for Market Billing...") .
将信用卡用于设备,即使它们不会花费任何费用.
make credit cards be used to the devices, even if they won't cost anything.
让其他人代替我做测试,因为我的帐户不能用于此.不仅如此,您还必须创建一个 google 组,然后将能够使用该应用程序的人放在那里,并且所有人都必须拥有一个 google+ 帐户,而不是添加您想要添加的确切内容...您将还需要等待一段时间,直到测试人员能够使用您的应用的应用内计费,直到那时他们将收到错误消息用户不符合此购买条件".
let others do the testing instead of myself, as my account cannot be used for that. not only that, but instead of adding exactly which you wish to add, you have to create a google group and there put the people who will be able to use the app, and all will have to have a google+ account... You will also need to wait some time till the testers will be able to use in-app-billing of your app and till then they will get an error "User is not eligible for this purchase" .
因为#1,我需要有某种机制来重置应用程序本身的购买,但我也不应该忘记为最终用户删除/隐藏此功能,以便他们不会误重置
because of #1, I need to have some kind of mechanism to reset the purchases, within the app itself, but i also shouldn't forget to remove/hide this features for the end users, so that they won't reset it by mistake
因为#1,如果我希望能够调试应用程序,我需要在清单上更改它,并选择在Eclipse中调试应用程序,并且记得在实际发布之前取消选中此标志应用程序.
because of #1, if I wish to be able to debug the app, I need to change it on the manifest, and choose to debug the app within Eclipse, and also remember to uncheck this flag before actually releasing the app.
由于应用程序在 Play 商店中,因此您无法修改应用内购买项目(例如它们的 ID),而在发布应用程序之前您可以修改许多内容.它不再是像使用简单开发那样灵活的开发.就像您的应用程序应该使用您选择的内容进行密封,即使您尚未发布它.
since the app is on the play store, you cannot modify in-app purchases items (their Id for example), as opposed to many thing you can modify before publishing the app. It's no longer a development as flexible as it can be using simple development. It's like your app should be sealed with what you choose even though you haven't published it yet.
问题
为什么会这样?
为什么没有简单的方法来测试应用内计费?
How come there isn't a simple way to allow to test the in-app-billing ?
你会如何处理我所写的问题?
How would you deal with the problems I've written about?
是否可以在应用发布之前测试应用内购买?
Is it possible to test the in-app purchases before the app is published?
为什么我不能使用自己的谷歌帐户?
How come I can't use my own google account ?
另外,假设我确实进行了(假)购买,我如何重置它(所有/特定购买)以便再次检查它?除了应用程序本身,我真的无法做到吗?
Also, suppose I do make a (fake) purchase, how do I reset it (all/specific purchases) in order to check it out again? Is it true I can't do it anywhere besides the app itself?
我错过了什么吗?
推荐答案
你不必为了测试它而发布应用程序你所要做的就是将 apk 上传到你的开发者控制台,只是不要发布它.如果您的帐户与您的开发者控制台相关联,您将无法使用该帐户,并且必须创建一个测试帐户来测试 IAP
you dont have to publish the app inorder to test it all you have to do is upload the apk to your developer console, just dont publish it. If your account is linked to your developer console you cannot use that account and have to create a test account to test the IAP's
这篇关于如何轻松测试应用内购买,而无需先发布或签名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何轻松测试应用内购买,而无需先发布或签名?
基础教程推荐
- Android:对话框关闭而不调用关闭 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01