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

问题描述

我第一次在我的应用更新中实施了应用购买,只等了 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:

我们发现您的应用提供可恢复的应用内购买但它不包括允许用户恢复的恢复"功能之前购买的应用内购买.恢复以前购买的应用内购买产品,最好提供一个恢复"按钮,并在恢复"时启动恢复过程按钮被点击.

现在我想在我的表格的右侧(顶部)添加一个 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!

推荐答案

Alex,上周我因为同样的原因被拒绝了,这正是 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).

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

10-09 21:26