如何使用MKStoreKit恢复购买 [英] How to restore purchases using MKStoreKit

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

问题描述

我的应用程序被苹果拒绝了,因为它没有恢复按钮,但我使用的是MKStoreKit,所以如果购买的应用程序被擦除并且用户再次单击我的购买按钮,它会重新下载然后'恢复'应用程序。

My app was rejected from apple because it does not have a restore button, but I am using MKStoreKit, so if the app is purchased and the the device is wiped and the user click my purchase button again, it does re-download and 'restore' the app.

那么,有人可以解释他们要求我做什么吗?我以为MKStoreKit为我办理了这个。

So, can someone explain what they are asking me to do? I thought MKStoreKit handled this for me.

谢谢

推荐答案

调用 restorePreviousTransactionsOnComplete

#import "MKStoreManager.h"

-(void)restorePreviousPurchase{
    [[MKStoreManager sharedManager]restorePreviousTransactionsOnComplete:^{NSLog(@"RESTORED PREVIOUS PURCHASE");} onError:nil];
}

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

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