IAPHelper
IAPHelper copied to clipboard
When restoreProductsWithCompletion fail to retrieve defaultQueue, callback won't be triggered
in IAPHelper.m
around 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
have solve this problem ?