ユーザーの購入を復元し、アプリで自動更新機能を再度有効にしようとしています。しかし、私がこの関数を呼び出すときはいつでもそうです
[[SKPaymentQueue defaultQueue] restoreCompletedTransactions];
何らかの理由で、私が行ったすべてのトランザクションのリストを取得し、この関数はキュー内のトランザクションの数と同じ数だけ呼び出されます(理由はわかりません)
- (void)restoreTransaction:(SKPaymentTransaction *)transaction
{
[self recordTransaction:transaction.originalTransaction];
[self provideContent:transaction.originalTransaction.payment.productIdentifier];
[self finishTransaction:transaction wasSuccessful:YES];
}
これにより、アプリは何度もプロ機能を再度有効にします。