iPhone:应用内购买,在沙盒中购买一次

发布于 2025-01-08 12:06:45 字数 213 浏览 5 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

夏末染殇 2025-01-15 12:06:45

因为在这种情况下您要删除该应用程序,所以 NSUserDefault 不可能存储此购买,所以我唯一想到的是购买类型...您在 itunesconnect consumable 、 non-consumable 中声明了什么类型的购买或订阅?可能是因为您将订阅指定为购买类型(订阅购买只能购买一次)...希望这有帮助..

这就是我在


StoreKit 会提示用户“你确定吗?”,要求他们输入自己的信息
用户名/密码(如果适用),进行收费,并向您发送
成功或失败。他们还将处理用户的情况
已经支付了该应用程序的费用,正在重新下载它,并给您一个
对此也有消息。


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


StoreKit will prompt the user “are you sure?”, ask them to enter their
username/password (if appropriate), make the charge, and send you a
success or failure. They’ll also handle the case where the user
already paid for the app and is just re-downloading it, and give you a
message for that as well.


对岸观火 2025-01-15 12:06:45

我找到了解决方案..

在应用程序委托中,我必须调用

- (BOOL) removeAllKeychainData

MKStoreManager,在开始时调用它一次,然后从代码中删除它,您不想意外地将其保留在版本中:S

I fount the solution..

in app delegate i have to call

- (BOOL) removeAllKeychainData

in MKStoreManager, call it once at beginning, and then remove it from code, you don't want to accidently leave that on release :S

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文