在iphone / ipad应用程序中的应用内购买中恢复功能 [英] Restore feature in In-App Purchase in iphone/ipad application

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

问题描述

我已在应用中集成了应用内购买,并在我的设备上进行了测试。它运作正常。
但是当我在iTunes商店上传二进制文件时Apple因此拒绝我的申请:

I have integrated in-app purchases in my application and tested on my device. It's working properly. But when I upload binary on iTunes store Apple reject my application due to this reason:

"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."

我无法理解实际问题是什么。

I couldn't understand what is the actual problem.

推荐答案

你偶然使用MKStoreKit吗?我是,并收到相同的拒绝消息。

Are you using MKStoreKit by chance? I am, and received the same rejection message.

为了解决这个问题,我添加了一个恢复应用程序内购买按钮,并调用 restorePreviousTransactionsOnComplete:onError:允许用户恢复以前购买的任何IAP。

To solve the issue, I added a button that says "Restore In-App Purchases", and calls restorePreviousTransactionsOnComplete:onError: which will allow the user to restore any previously purchased IAPs.

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

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