我无法进行应用程序购买测试
我在应用内购买方面的成功率为零。我已经提交了免费应用程序二进制文件,然后拒绝了该二进制文件。我已经添加了测试产品。我已批准测试产品TAP001。
我已经按照代码示例进行了操作,但没有成功。我使用“com.companyname.appid.TAP001”和“TAP001”执行 SKProducts 请求
无论如何,我都会收到一个空的response.products和response.invalidProductIdentifiers以及我发送的产品字符串。
我创建了一个测试用户,但是看到我无法获取任何产品信息,测试用户还没有真正发挥作用。
可以在调试或发布版本中测试应用内购买吗?或者它必须是一个分布?
在进行应用程序购买测试之前,必须在应用程序商店中拥有一款完全接受的应用程序吗?
我只是想测试这个过程,但我还没有实际的应用程序。我甚至填写了所有银行和税务信息。我已按照应用程序文档中的步骤进行操作,但显然我有问题或缺失。
谢谢
I have had zero success with in app purchase. I have submitted the free app binary, and then rejected the binary. I have added the test product. I have approved the test product TAP001.
I have followed the code examples to no avail. I do a SKProducts request using both "com.companyname.appid.TAP001" and just "TAP001"
Regardless, I get an empty response.products and response.invalidProductIdentifiers with the product string I sent.
I created a test user, but seeing how I cannot get any product info, the test user doesn't really come into play yet.
Can in app purchase be tested in debug or release builds? Or does it have to be a distribution?
Must one have a fully accepted app in the app store prior to testing in app purchase?
I am simply trying to test the process out and I do not have an actual app yet. I went as far as to fill out all the bank and tax information. I have followed the steps in the app docs but clearly I have something wrong or missing.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我刚刚让它工作。我仅对产品使用“TAP001”,而不是“com.companyname.appid.TAP001”。我得到了产品信息。
我觉得很愚蠢,但我知道过去曾尝试过“TAP001”,但没有成功,但在此之前我已经尝试过很多事情,所以当时我一定有其他一些信息错误。
对于那些正在努力解决这个问题的人,我可以说:
以下是一个示例:
I just got it to work. I used only "TAP001" for a product instead of "com.companyname.appid.TAP001". and I got product information back.
I feel dumb but I know have tried "TAP001" in the past with no success but I have tried so many things prior to this that I must have had some other information wrong a the time I did.
For those who are struggling with this issue, I can say:
Here is an example:
根据Apple的itunes connect FAQ,您需要创建一个测试用户才能使用itunes store沙箱环境。
话虽这么说,即使在创建这样的用户并将我的 iPhone 设置为使用该用户之后,我仍然遇到您报告的相同问题:根据商店套件 API,所有产品都是“无效”。
当我弄清楚时,我会更新这篇文章。
According to Apple's itunes connect FAQ, you need to create a test user in order to use the itunes store sandbox environment.
That being said, even after creating such a user and setting my iphone to use that user, I am still experiencing the same issue that you report: all products are "invalid" according to the store kit API.
I'll update this post when I figure it out.
我还听说,有时,您需要等待几个小时才能让应用内项目通过苹果沙箱服务器,因此这可能是它尚未运行的原因。我就是这种情况,我要等24小时看看,我会让你知道的!
I've also heard that some times, you need to wait several hours before the in-app item goes through apple sand box servers, so it could be the reason it doesn't work yet. I'm in that case, i'm going to wait 24 hours to see, i'll let you know !!!
所以:想象一下关于如何测试应用内购买的一组极其复杂且令人费解的规则。现在让它复杂十倍。这就是苹果的解决方案。 :)
您需要阅读 itunes connect 开发人员指南,可能还需要阅读在应用程序购买指南中。简而言之,您需要一个特殊的测试帐户,并且如果您想测试应用内购买,则还需要以非常特殊的方式使用它。
祝你好运!
So: Imagine an extremely complicated and convoluted set of rules for how to test in app purchases. Now make it ten times more complicated. That is apple's solution. :)
You'll need to read the itunes connect developer guide, and probably also the In App Purchase guide. The short answer is that you'll need a special test account and you'll also need to use it in a very particular way if you want to test your in app purchase.
Good luck!