I have registered my products for In App Purchase. I created a sample app for getting the products. Its working just fine.
When I integrated that code in my existing app I am getting empty product list. In-App related classes are same in both projects so product identifiers are same as well and all request response process is same.
I tried to keep same bundle identifier to bot app which I have used for the app to registered the product and provisioning profile is also same in both of my project (Main and sample).
I don't know but for some reason I am not getting my products in my project while I am getting it in sample.
Here is the code
-(void)requestProducts
{
NSSet * prodIdentifiers=[NSSet setWithObjects:@"com.test.product1", @"com.test.product2", nil];
self.reqProdcut = [[[SKProductsRequest alloc] initWithProductIdentifiers:prodIdentifiers] autorelease];
reqProdcut.delegate = self;
[reqProdcut start];
self.ReceiptData=[NSMutableData data];
}
- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response
{
NSLog(@"Received products results... %@", response.debugDescription);
NSLog(@"%@",response.products);
self.products =response.products; // here I get empty array in response.products
}
Any help please.
EDIT
Just gone through this [Link] (In-App Purchase response.products empty)
All of my product identifiers from my app are in response.invalidProductIdentifiers
while in my sample all is correct.