原文链接:http://hillboy.blog.51cto.com/1645730/946243
最近的一个应用被拒了,苹果解释如下:
Jul 25, 2012 12:52 PM. From Apple.
We found that while your app offers In-App Purchase(s) that can be restored, it does not include the required "Restore" feature to allow users to restore the previously purchased In-App Purchase(s), as specified in Restoring Transactions section of the In-App Purchase Programming Guide:
"...if your application supports product types that must be restorable, you must include an interface that allows users to restore these purchases. This interface allows a user to add the product to other devices or, if the original device was wiped, to restore the transaction on the original device."
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 by the user.
For more information about restoring transactions and verifying store receipt, please refer to the In-App Purchase Programming Guide.
大体意思就是应用需要一个购买恢复的功能,第一次做的IAP并没有做这个功能,但也通过了,可能是苹果新增的审核规则。
解决方法很简单,增加一个Restore按钮,并调用[[SKPaymentQueue defaultQueue] restoreCompletedTransactions],接下来的流程是
1,弹出对话框输入帐号信息
2,如果点击“取消”,调用方法
-(void)paymentQueue:(SKPaymentQueue *)queue restoreCompletedTransactionsFailedWithError:(NSError *)error
如果点击“确定”,开始请求数据
3,返回数据后,回调
-(void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions
4,判断交易队列中交易的状态,在状态为“SKPaymentTransactionStateRestored”的switch分支下调用恢复处理方法
5,恢复完成后回调-(void)completeTransaction:(SKPaymentTransaction *)transaction
分享到:
相关推荐
//恢复 -(BOOL)restoredArray:(RMIAPHelper*)sender withArray:(NSArray*)productsIdArray; //其他 //不支持内购 -(void)iapNotSupported:(RMIAPHelper*)sender; @end @interface RMIAPHelper : NSObject +...
请记住, react-native-iap将提供您需要的基本功能,但不是一站式解决方案,在您的应用中实施应用内购买仍需要大量工作。 同样,实现客户端只是硬币的一面,您必须实现服务器端才能验证收据(正确完成收据可能是最...
STC51单片机IAP15W4K58S4最小系统板-教程资料-技小新-IAP15W4K58S4最小系统板-程序烧写方法.pdf
苹果iOS IAP范例代码 #import <UIKit/UIKit.h> #import @interface CBiOSStoreManager : NSObject,SKPaymentTransactionObserver> { int buyType; NSString* _buyProductIDTag; } + (CBiOSStoreManager*) ...
STC51单片机IAP15W4K58S4最小系统板-教程资料-技小新-IAP15W4K58S4最小系统板-产品手册.pdf
BHS-STM32 ISP-IAP用户手册及延长STM32寿命
Digi One? IAP:从单纯连接到真正互操作性白皮书pdf,Digi One? IAP:从单纯连接到真正互操作性白皮书
STC51单片机IAP15W4K58S4最小系统板-教程资料-技小新-基本例程.zip
STC51单片机IAP15W4K58S4最小系统板-教程资料-技小新-IAP15W4K58S4最小系统板《原理图》.pdf
STC12C5AxxAD 系列单片机 EEPROM/IAP 功能测试程序演示 STC12C52xxAD 系列单片机 EEPROM/IAP 功能测试程序演示 STC11xx 系列单片机 EEPROM/IAP 功能测试程序演示 STC10xx 系列单片机 EEPROM/IAP 功能测试程序演示 -...
STC51单片机IAP15W4K58S4最小系统板-教程资料-技小新-应用例程.zip
STMicroelectronics针对Cube(HAL)提供的通过URART/UART实现IAP,适用于STM32系列MCU,无需再设置BOOT引脚,仅需一个GPIO设置POR后执行IAP还是APP,分享给坛友,该程序包也可从ST官网... 同时附带该程序包的APP.Note...
python库。 资源全名:itunes-iap-2.5.0.tar.gz
stm32 IAP升级客户端,ymodem协议传输文件
苹果内购价格表中的实际收入是一个动态变化的的,会根据税收变化而发生改变,一般苹果会收取30%左右的金额。但是表格里边的价格和等级一般是不变的。
stm32-iap-uart-app_lite-master
资源分类:Python库 所属语言:Python 资源全名:itunes-iap-0.1.2.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
IAP功能IAP功能IAP功能IAP功能IAP功能IAP功能IAP功能
STC-USER-IAP-ISP 程序STC-USER-IAP-ISP 程序STC-USER-IAP-ISP 程序