iPhone - InApp purchase Restore products prompt si

2019-05-11 15:15发布

I am providing Restore Functionality for Non-Consumable Products. When I click on to Restore it prompts the SignIn alert, I use the Existing Apple Id for SignIn, after entering UserId and Password and taps on Ok then SignIn Alert Prompted once again.

Why it's prompted again once I entered user details?

Sign In Alert

EDIT: Restore Process Code:

-(void)RestorePurchasedItems
{
    [[SKPaymentQueue defaultQueue] addTransactionObserver:self];
    [[SKPaymentQueue defaultQueue] restoreCompletedTransactions];
}

- (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions
{
    NSLog(@"=======%@",transactions);
}

- (void)paymentQueue:(SKPaymentQueue *)queue restoreCompletedTransactionsFailedWithError:(NSError *)error
{
    if (error.code == SKErrorPaymentCancelled) {

    }
}
- (void)paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue
{
    NSMutableArray* purchasableObjects  = [[[NSMutableArray alloc] init] autorelease];   
    for (SKPaymentTransaction *transaction in queue.transactions)
    {
        NSString *productID = transaction.payment.productIdentifier;
        [purchasableObjects addObject:productID];
    }
    self.OnSuccessRestored(purchasableObjects); //Block Call to access the products
}

1条回答
再贱就再见
2楼-- · 2019-05-11 16:14

Don't Know what happened with iTunes connect issue gone away magically :) :)

查看更多
登录 后发表回答