hi everyone
i am getting invalid identifier problem while requesting for product information
i have done the following thing
i have added my application to the itunes connect and the bundle identifier matches with that of the one in programme portal
i have enabled in app purchase in programme portal for the app id and created provision profile for that and installed on the device
3.created test account with the product identifier and price and name
- i have included the code below in my project
NSString *str = [[NSString alloc] initWithFormat:@"//Same as the Product Id displayed in Itunes Connect//"]; SKProductsRequest *request= [[SKProductsRequest alloc] initWithProductIdentifiers:[NSSet setWithObject:str]]; request.delegate = self; [request start]; }
(void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response{
NSArray *myProduct = response.products; NSArray *invalidProdId = response.invalidProductIdentifiers;
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"product" message:[myProduct objectAtIndex:0] delegate:nil cancelButtonTitle:@"purchse" otherButtonTitles:@"cancel"]; [alert show]; [alert release]; [request autorelease];
}
but i am getting my my productid as invalid
please help me if anyone have any idea