iPhone:应用内购买,在沙盒中购买一次
我在 iPhone 上的应用程序购买中遇到了一个奇怪的问题!我在 ituneconnect 中创建了一个产品,然后(使用 MKstorekit)我在沙箱环境中购买了该产品..一切都会第一次...我从设备中删除了该应用程序并创建了另一个测试帐户。 我在调试器模式下发现该产品已购买!
尝试了从清理项目到解决缓存问题的所有技巧..但问题仍然发生..这正常吗?或者我做错了什么?
请指教
I Have a strange problem with iphone in app purchase! i created a product in the ituneconnect and then (using MKstorekit) i bought the product in sandbox environment .. and everything went will the first time... i removed the app from the device and created another test account.
and i found in the debugger mode that it sees the product as already purchased !!
tried everything from cleaning the project and all the tricks for the cache problems.. but still the problem occure .. is that normal?? or i'm doing something wrong?
please advice
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
因为在这种情况下您要删除该应用程序,所以 NSUserDefault 不可能存储此购买,所以我唯一想到的是购买类型...您在 itunesconnect consumable 、 non-consumable 中声明了什么类型的购买或订阅?可能是因为您将订阅指定为购买类型(订阅购买只能购买一次)...希望这有帮助..
这就是我在
since you are deleting the app in that case there is no chance that NSUserDefault will be storing this purchase so only thing that comes to my mind is the type of purchase... what type of purchase did you state in itunesconnect consumable , non-consumable or subscription? it could be because you stated subscription as purchase type(subscription purchases can only be bought once)... hope this helps..
this is what I have come across at http://www.raywenderlich.com/2797/introduction-to-in-app-purchases
我找到了解决方案..
在应用程序委托中,我必须调用
MKStoreManager,在开始时调用它一次,然后从代码中删除它,您不想意外地将其保留在版本中:S
I fount the solution..
in app delegate i have to call
in MKStoreManager, call it once at beginning, and then remove it from code, you don't want to accidently leave that on release :S