iPhone - InApp purchase Restore products prompt signin alert twice [closed]

▼魔方 西西 提交于 2019-12-13 12:29:07

问题


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?

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:


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



来源:https://stackoverflow.com/questions/15378543/iphone-inapp-purchase-restore-products-prompt-signin-alert-twice

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!