StoreKit restoreCompletedTransactions does not return any transactions

I bought a non-consumable product using my test user, but when I call it:

[[SKPaymentQueue defaultQueue] restoreCompletedTransactions];

I do not see any transactions in paymentQueueRestoreCompletedTransactionsFinished. The code is as follows:

- (void)paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue
{
    NSLog(@"received restored transactions: %i", queue.transactions.count);
    for (SKPaymentTransaction *transaction in queue.transactions)
    {
        [self restoreTransaction:transaction];
    }

    UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Success" message:@"Your add-ons have been restored." delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
    [alertView show];
    return;
}

The log always displays "received recovered transactions: 0", but I expect to see one transaction. Does anyone know why the transaction is not being returned?

+5
source share
1 answer

! , iTunes Connect , "" "". , ( "" ), . , , ( 20 ) . ( , StoreKit), StoreKit.

+7

All Articles