应用内购买'SKProductsRequest'无法产生成功的响应 [英] In-app purchase 'SKProductsRequest' failing to produce a successful response

查看:1340
本文介绍了应用内购买'SKProductsRequest'无法产生成功的响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们一直在尝试在沙盒环境中测试应用内购买,但无法从 SKProductsRequest 中接收任何数据。回调

We've been trying to test in-app purchases in a sandbox environment, but fail to receive any data back from an SKProductsRequest. The callback

- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response

确实被调用,但响应返回一个空数组。我只测试这个ipad,但是当我尝试这个请求时,3.2和4+似乎都没有得到响应。

does get called but the response returns an empty array. Im testing this only for ipad, but both 3.2 and 4+ all seem to not get a response when I try this request.

我已经仔细阅读了所有的intunes连接文档所以要将iTunes连接上的应用与其inapp购买项目绑定,以及 SKProductsRequest 对象和在App Purchase Programming Guide 中寻求帮助。我已经尝试重置证书并从头开始,并按照ios配置门户中的build for distribution帮助程序进行操作。

I have read throughly through all intunes connect documentation so to tie the app on the iTunes connect with its inapp purchase items, and also all apple documentation on the SKProductsRequest object and the In App Purchase Programming Guide for help. I have tried resetting the certificates and starting all from scratch and followed the 'build for distribution' helper in the ios provisioning portal.

我还在所有调试,发布和分发版本中将应用程序构建到设备上。我观看并关注了 WWDC2010会议310'Application Publishing with iTunes Connect',但这是旧的,因为在配置门户网站中创建app-id时,启用inapp付款检查按钮不再可见。

I have also built the app in all debug, release and distribution versions onto the device. I have watched and followed the WWDC2010 session 310 'App Publishing with iTunes Connect', but this is old as the enable inapp payments check button is no longer visible when creating app-ids in the provisioning portal site.

我还确保我的代码签名是正确的,并且该程序与所请求的inapp购买签署的正确app-id匹配。 (参见附件,bundleid与Xcode中的标识符匹配。

I have also made sure that my code signing is correct and the program matches the right app-id to which the requested inapp purchases are signed-off with. (see attached, the bundleid matches the identifier in Xcode.

我确保ipad在运行测试应用程序时退出了任何iTunes帐户,并添加了测试用户可以在iTunes Connect页面上进行测试。我们的iTunes Connect银行信息已全部完成。

I have made sure that the ipad has signed out of any iTunes accounts when running the test app, and added test users on the iTunes Connect page to test with. Our iTunes Connect banking information is fully completed.

我还检查了很多论坛,这个过程似乎是一个很大的灰色区域对于很多人来说,我已经筋疲力尽了所有想法,我似乎无法得到任何产品ID的回复。

I have also checked many forums and this process seems to be a big grey area for many, I have exhausted all thought on this, I just cant seem to get a response back for any product id.

...任何人都可以帮助我吗?!!谢谢大家!

...can anyone help me?!! Thanks people!

推荐答案

你犯了一个非常常见的错误我已经通过应用内购买了。你已经把所有的正确的步骤,但你错过了一步。你需要提交应用程序内购买。你可以点击iTunes Connect部分的应用内购买,你可以通过转到管理应用程序 - >你的应用程序 - >管理应用程序购买。在此详细视图中,单击子右上角的mit In-App-Purchase按钮。此按钮可能显示为灰色。如果是,您必须为您的应用上传二进制文件。如果你愿意,你可以马上拒绝。完成后,您可以返回详细视图并单击提交按钮。

Your making a very common mistake I have made myself with in-app-purchases. You have taken all the right step but you are missing one step. You need to submit the in-app-purchase. You do this by clicking on the in-app-purchase in the section of iTunes Connect which you can find by going to Manage Applications -> your app -> manage in app purchases. In this detail view you click the "Submit In-App-Purchase" button in the upper right corner. This button may be grayed out. If it is you must upload a binary for your app. You can reject it right away if you want to. Once you have done that you can go back to the detail view and click the submit button.

这篇关于应用内购买'SKProductsRequest'无法产生成功的响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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