“恢复购买”是什么意思?应用内购买是什么意思?
我不太明白这个想法。 我是否必须为用户提供恢复按钮? 这个方法应该调用什么方法? 恢复会做什么?
I don't really understand this idea.
Do I have to provide a restore button for the user?
What method should this method invoke?
What will restore will do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您通常使用以下代码恢复购买:
它将在所购买商品的观察者上重新调用
- paymentQueue:updatedTransactions
。这对于删除后重新安装应用程序或将其安装在不同设备上的用户非常有用。并非所有类型的应用内购买都可以恢复。
You typically restore purchases with this code:
It will reinvoke
-paymentQueue:updatedTransactions
on the observer(s) for the purchased items. This is useful for users who reinstall the app after deletion or install it on a different device.Not all types of In-App purchases can be restored.
您会收到苹果的拒绝消息,因为您注册的应用内购买产品可能属于非续订订阅和消耗品类别。此类产品不会自动更新。您的应用程序中需要有明确的恢复按钮。
对于其他类型的产品,它将自动恢复。
请阅读以下文字,这将清除您对此的概念:
You will get rejection message from apple just because the product you have registered for inApp purchase might come under category Non-renewing subscriptions and consumable products. These type of products will not automatically renewable. you need to have explicit restore button in your application.
for other type of products it will automatically restore it.
Please read following text which will clear your concept about this :
它是可选功能吗?
如果当用户尝试购买非消耗性产品时您不提供它,AppStore 将恢复旧交易。但你的应用程序会认为这是新的交易。
如果您提供恢复机制,那么您的采购经理将看到恢复的交易。
如果应用程序应该区分此选项,那么您应该提供恢复以前购买的产品的功能。
Is it as optional functionality.
If you won't provide it when user will try to purchase non-consumable product AppStore will restore old transaction. But your app will think that this is new transaction.
If you will provide restore mechanism then your purchase manager will see restored transaction.
If app should distinguish this options then you should provide functionality for restoring previously purchased products.