views:

411

answers:

1

hi everyone

i am getting invalid identifier problem while requesting for product information

i have done the following thing

  1. i have added my application to the itunes connect and the bundle identifier matches with that of the one in programme portal

  2. 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

  1. 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

A: 

signing contracts for paid Apps solved all my problems :)

Reetu