mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
continue
This commit is contained in:
parent
0909bb2909
commit
b4d9f69295
1 changed files with 3 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ NSString *const kLinphoneIAPurchaseNotification = @"LinphoneIAProductsNotificati
|
|||
return;
|
||||
}
|
||||
//TODO: move this list elsewhere
|
||||
NSArray * list = [[[NSArray alloc] initWithArray:@[@"test.tunnel"]] autorelease];
|
||||
NSArray * list = [[[NSArray alloc] initWithArray:@[@"test.auto_renew_7days", @"test.non_renew", @"test.one_time", @"test.auto_renew_1month_withfree"]] autorelease];
|
||||
|
||||
SKProductsRequest *productsRequest = [[SKProductsRequest alloc]
|
||||
initWithProductIdentifiers:[NSSet setWithArray:list]];
|
||||
|
|
@ -86,6 +86,8 @@ NSString *const kLinphoneIAPurchaseNotification = @"LinphoneIAProductsNotificati
|
|||
}
|
||||
|
||||
-(void)restore {
|
||||
LOGI(@"Restoring user purchases...");
|
||||
if (! [SKPaymentQueue canMakePayments]) { LOGF(@"Not allowed to do in app purchase!!!"); }
|
||||
_productsRestored = [[NSMutableArray alloc] initWithCapacity:0];
|
||||
[[SKPaymentQueue defaultQueue] restoreCompletedTransactions];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue