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.Screen shoot of xcode Capabilities.

I have enabled InApp Purchases on iTunes Connect and added both products to the InApp list. InApp purchases product list.Screen shoot of add InApp purchase in my app.

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


2 answers


This can happen if you are not using the app on your device. ios simulator causes these types or problems.



+1


source


Create your certificates again and test the app on iPhone or iPad.



0


source







All Articles