应用内购买超时错误(-1001)
尝试进行应用内购买时出现超时错误 (-1001)。在应用内购买运行良好一段时间后,这种情况突然发生。现在发生的情况是,我看到了我的库存,包括从苹果检索的价格,但在我尝试购买并执行以下代码后:
SKPayment *payment = [SKPayment
paymentWithProductIdentifier: product.productIdentifier];
[[SKPaymentQueue defaultQueue] addPayment: payment];
我得到的只是超时错误。
我创建了一个测试项目,除了由可靠的第三方(城市飞艇)提供的店面之外什么都没有,我已经成功地使用了该项目,并在我的应用程序中进行了一些更改。我在应用程序购买超时错误中遇到了同样的问题,这强烈表明苹果端存在某种问题(似乎我的设备或我的应用程序 ID 已经以某种方式被黑了——也许是在我多次卸载该应用程序之后)重置其状态——至少使用沙箱服务器)。所以现在的问题是该怎么办。任何帮助将不胜感激。
i get a timeout error (-1001) when trying to make an in app purchase. this began happening suddenly after in-app-purchase had been working fine for a while. what happens now is that i see my inventory, complete with prices retreived from apple, but after i attempt a purchase and the following code is executed:
SKPayment *payment = [SKPayment
paymentWithProductIdentifier: product.productIdentifier];
[[SKPaymentQueue defaultQueue] addPayment: payment];
all i get is a timeout error.
i created a test project with nothing but the storefront supplied by a reliable third party (urban airship) which i'd been using successfully with some alterations in my app. i got the same in app purchase timeout error, which strongly suggests some kind of issue on apple's end (it seems that either my device or my app id have gotten blackballed somehow -- perhaps after i'd uninstalled the app a bunch of times to reset its state -- at least with the sandbox servers). so now the question is what to do about it. any help would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题已解决:这毕竟是苹果的问题。显然,新的应用商店协议已经把工作搞砸了。我必须通过设备上的应用程序商店安装一些东西,之后应用程序内购买又恢复正常了。感谢大家的帮助。
problem solved: it was after all an apple issue. apparently the new app store agreement had gummed up the works. i had to install something via the app store on the device, after which the in-app-purchase was a-okay again. thanks all for your help.