在iPhone中恢复forApp中的非消耗品 [英] Restore for inApp for non-consumable product in iPhone

查看:193
本文介绍了在iPhone中恢复forApp中的非消耗品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否必须在用户界面中添加恢复按钮,以恢复非消耗品的inApp购买。

Is it compulsory to add restore button in the UI for restoring the inApp purchase for non consumable product.

有没有办法自动执行此操作,如愤怒的小鸟和其他应用程序/游戏?

Is there any way to do it automatically like in Angry Birds and other apps/games?

推荐答案

正如Apple在应用内购买指南

设计您的应用内购买商店

您的应用内购买商店应该具有吸引力,易于理解且易于使用。请遵循以下设计指南,以帮助您实现这一目标:

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:

提供检查清单按钮,允许用户检查他们可能遗失的物品或者他们已经丢失的物品在另一台设备上购买。请记住,自动启动以前购买的恢复(这会提示用户输入他的iTunes Store密码)可能会让您的用户感到困惑。

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.

在代码中,请致电 restoreCompletedTransactions()实现此目的的方法。

In code, call restoreCompletedTransactions() method to implement this.

这篇关于在iPhone中恢复forApp中的非消耗品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆