Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When restoreProductsWithCompletion fail to retrieve defaultQueue, callback won't be triggered #42

Open
EvenCheng opened this issue Jan 20, 2017 · 1 comment

Comments

@EvenCheng
Copy link

EvenCheng commented Jan 20, 2017

in IAPHelper.maround line 237

`

-(void)restoreProductsWithCompletion:(resoreProductsCompleteResponseBlock)completion {

//clear it
self.buyProductCompleteBlock = nil;

self.restoreCompletedBlock = completion;
if ([SKPaymentQueue defaultQueue]) {
    [[SKPaymentQueue defaultQueue] restoreCompletedTransactions];
}
else {
    NSLog(@"Cannot get the default Queue");
}

}

`

In the else clause should trigger callback

@chirag225
Copy link

have solve this problem ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants