InAPP 购买的内容存储在哪里?
这可能是一个愚蠢的问题,但我一直找不到答案。应用内购买应存储在设备上的哪个位置?它们是否下载到捆绑包中?
This may be a silly question, but I haven't been able to find the answer. Where on the device should InApp purchases be stored? Are they downloaded to the bundle?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您必须自己存储它们。为了简单起见,我会使用 NSUserDefaults。
它们不会保存到您的应用程序包中,因为这会使签名无效。
You have to store them yourself. I'd use NSUserDefaults for simplicity.
They aren't saved to your app bundle, since that would invalidate the signature.
我提供了一个非常有用的示例,其中包括将您购买的内容保存到 NSUserDefaults,正如上面所说的。我同意,这就是这样做的方法。
如果您对示例代码有任何疑问,请告诉我。
应用程序树 - 应用程序内购买示例 - 免费
I put up a pretty useful sample that includes saving your purchases to NSUserDefaults as tc said above. I agree, that's the way to do it.
Let me know if you have any questions about the sample code.
The App Tree - In App Purchase Sample - Free