在应用程序购买恢复按钮 [英] In app purchases restore Button

查看:110
本文介绍了在应用程序购买恢复按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经首次在应用内购买了我的应用更新,只是等了3周并因为以下原因而被拒绝:

I have implemented in app purchases into my app update for the first time, only too wait 3 weeks and have it rejected for the following reason:


我们发现您的应用程序提供的应用程序内购买可以恢复
,但它不包含恢复功能,允许用户恢复以前购买的应用程序内购买
/秒。要恢复之前购买的
应用内购买产品,最好提供
a恢复按钮并在点击恢复
按钮时启动恢复过程。

We found that your app offers In-App Purchase/s that can be restored but it does not include a "Restore" feature to allow users to restore the previously purchased In-App Purchase/s. To restore previously purchased In-App Purchase products, it would be appropriate to provide a "Restore" button and initiate the restore process when the "Restore" button is tapped.

现在我想在我桌子的右边(顶部)添加一个 navbar 按钮可以看到/点击应用购买的位置,并添加以下代码链接到按钮:

Now I was thinking of adding a navbar button to the right (top) of my table where the app purchases can be seen/tapped and adding the following code that will be linked to the button:

 [[SKPaymentQueue defaultQueue]   restoreCompletedTransactions];

有人可以验证这是否正确并且很可能只需要所有这些?希望这次成功通过。提前谢谢!

Can someone verify that this is correct and most likely all that is needed? Would like this to pass successfully this time. Thanks in advance!

推荐答案

亚历克斯,我上周因为同样的原因被拒绝了,这正是Apple想要的 - 添加了这样的恢复按钮后,他们没有就此主题提出任何其他问题。

Alex, i've been rejected for the same reason last week, and this is right what Apple wanted - after adding such a Restore button they didn't ask any other question on this subject.

当然,您不仅需要打电话 [[SKPaymentQueue defaultQueue] restoreCompletedTransactions]; ,但也实现了恢复(我的意思是,向用户提供内容)。

Of course, you need not only to call [[SKPaymentQueue defaultQueue] restoreCompletedTransactions];, but implement the restoring itself too (i mean, providing the content to user).

这篇关于在应用程序购买恢复按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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