InApp Purchase Product List Not Loading on iPhone App
I am trying to use an InApp Purchase in my iPhone application. I am using this tutorial for reference. I followed the tutorial correctly. But my products are not loading. Here is my code.
+ (RageIAPHelper *)sharedInstance {
static dispatch_once_t once;
static RageIAPHelper * sharedInstance;
dispatch_once(&once, ^{
NSSet * productIdentifiers = [NSSet setWithObjects:
@"com.ilfmobile.hero.twohundredconnects",
@"com.ilfmobile.hero.onethousandconnects",
nil];
sharedInstance = [[self alloc] initWithProductIdentifiers:productIdentifiers];
});
return sharedInstance;
}
And my product list code.
- (void)reload {
products = nil;
[MBProgressHUD showHUDAddedTo:self.view animated:YES];
[[RageIAPHelper sharedInstance] requestProductsWithCompletionHandler:^(BOOL success, NSArray *theProducts) {
[MBProgressHUD hideAllHUDsForView:self.view animated:YES];
if (success) {
products = theProducts;
[self.tblview reloadData];
}
}];
}
And I am implementing InApp purchases in Xcode Capabilities. I have added screenshots as shown below.
I have enabled InApp Purchases on iTunes Connect and added both products to the InApp list.
Please suggest where I am going wrong. Thank you for giving your precious time to the proposal. I am using Xcode5.1 and target iOS7.1 for app development.
+3
source to share