简体   繁体   English

在iPhone中恢复forApp中的非消耗品

[英]Restore for inApp for non-consumable product in iPhone

Is it compulsory to add restore button in the UI for restoring the inApp purchase for non consumable product. 是否必须在UI中添加恢复按钮,以恢复非消耗品的inApp购买。

Is there any way to do it automatically like in Angry Birds and other apps/games? 有没有办法像愤怒的小鸟和其他应用/游戏一样自动完成?

Yes the reason is because is a non-consumable, it makes sense since removing and reinstall the app will make the user to lose the purchase, so you need to include an option to restore the non-consumables: 是的,原因是因为是非消耗品,这是有道理的,因为删除并重新安装应用程序将使用户失去购买,因此您需要包含一个选项来恢复非消耗品:

Please Refer the following link for that Here 请参考以下链接是这里

Personal Experience 个人经验

In my one game i integrate in-app purchase in that non-consumable IAP installed and apple reject my app and insert one restore button for the restore purchase and now app in review. 在我的一款游戏中,我在安装的非耗材IAP中集成了应用程序内购买,苹果拒绝了我的应用程序,并为恢复购买和现在的应用程序插入了一个恢复按钮。

As mentioned by Apple in In-App Purchase Guidelines : 正如Apple在应用内购买指南中所述

Designing Your In-App Purchase Store 设计应用程序内购买商店

Your In-App Purchase store should be attractive, easy to understand, and simple to use. 您的应用内购买商店应该具有吸引力,易于理解且易于使用。 Follow these design guidelines to help you meet this goal: 请遵循以下设计指南以帮助您实现此目标:

Provide a “Check Inventory” button that allows users to check for items they might be missing or that they've already purchased on another device. 提供“检查清单”按钮,允许用户检查他们可能丢失的项目或他们已经在其他设备上购买的项目。 Keep in mind that automatically initiating a restore of previous purchases (which will prompt the user for their iTunes Store password) may be confusing to your users. 请记住,自动启动以前购买的恢复(这将提示用户输入其iTunes Store密码)可能会让您的用户感到困惑。

In code, call restoreCompletedTransactions() method to implement this. 在代码中,调用restoreCompletedTransactions()方法来实现它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM