I have created an in app purchase in itunes connect, since I have not tested my new in app-purchase application,I associated it with my free app.I have finished it with the developer guide,and now its status is pending developer approval.
However,during my test in the new application:
//the featureAId is the same as the created in app purchase id in itunes connect
SKProductsRequest* request=[[SKProductsRequest alloc] initWithProductIdentifiers:[NSSet setWithObjects:featureAId,nil]]; request.delegate = self; [request start];
- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response { NSLog(@"did receiveResponse!"); NSLog(@"%d",[response.invalidProductIdentifiers count]); }
//the logging is 1,showing that we the product information can not be retrived. I have tested the application in device,and it is connected to the internet through wifi.
what is the problem? Thanks a lot.