我的iOS应用程序已经使用了多年,用户可以还原非消耗性的应用程序内购买。现在,它不再起作用。发生了什么变化或我做错了什么?
我打电话
[[SKPaymentQueue defaultQueue] restoreCompletedTransactions];
在商店观察员中,它曾经到过这里
- (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions {
// never gets here
for (SKPaymentTransaction *transaction in transactions) {
switch (transaction.transactionState) {
case SKPaymentTransactionStateRestored:
// used to go here, no longer does
我添加了它,它在这里进行了0笔交易
- (void)paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue {
// goes here with [queue.transactions count] == 0