在应用内购买:检测某个功能是否已在其他设备中购买
Apple 要求应用内购买中出售的功能适用于用户的所有设备。目前,我的应用程序询问 NSUserDefaults 单例该功能是否可用,当用户从同一设备购买该功能时效果很好,问题是用户可能拥有的其他设备在重复购买之前并不知道该购买流程和商店都这么告诉他们。
所以我想知道这是否可以。如果没有,我应该采取什么措施来检测这些信息?
Apple demands that the features sold on In App Purchase are available for all the devices of the user. Currently, my app asks the NSUserDefaults singleton if the feature is available, when the user bought the feature from the same device it works great, the problem is that the other devices the user may have are not aware of this purchase until they repeat the purchase process and the store tell them so.
So I was wondering if this is OK. If not, what should I implement to detect this information?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Store Kit 框架提供在其他设备上恢复非消耗性产品的支持。应用程序内购买编程指南提供了详细信息,但您基本上可以调用restoreCompletedTransactions 并取回之前的交易。
您还可以允许用户在每台新设备上重复购买,但您可能希望向用户明确表示他们只会被收取一次费用。
The Store Kit framework provides support to restore nonconsumable products on additional devices. The In App Purchase Programming Guide has the details but you basically call restoreCompletedTransactions and get back the previous transactions.
You can also allow the user to repeat the purchase on each new device though you might want to make it clear to the user that they will only be charged once.