2012-06-07 117 views
2

我在應用程序中集成了應用程序內購買,並在我的設備上進行了測試。它工作正常。 但是當我上傳二進制文件的iTunes商店蘋果拒絕我的申請,由於這個原因:iPhone/iPad應用程序在應用程序內購買的恢復功能

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

我弄不明白什麼是真正的問題。

+0

你在代碼中實現了 - (void)restoreTransaction:(SKPaymentTransaction *)事務嗎? –

+1

@NuzhatZari:是的,我已經在我的代碼中集成了這個方法。 代碼 - [self recordTransaction:transaction]; [self provideContent:transaction.originalTransaction.payment.productIdentifier]; [self finishMyTransaction:transaction]; – kb920

+0

http://stackoverflow.com/questions/7761556/restore-already-bought-in-app-purchases-on-iphone# –

回答

3

您是否正在使用MKStoreKit?我是,並收到相同的拒絕信息。

爲了解決這個問題,我添加了一個按鈕,說「恢復應用內購買」,並呼籲restorePreviousTransactionsOnComplete:onError:這將允許用戶恢復任何以前購買的IAP。