Alex Rivera | Logout

productsRequest response method is not calling

Asked 2010-04-28T11:12:24.273
20

I am implementing an in app purchase and I am sending the request to apple store through

- (void) requestProductData
{
 SKProductsRequest *request= [[SKProductsRequest alloc] initWithProductIdentifiers:
         [NSSet setWithObjects: featureAId,featureBId,nil]]; // add any other product here
 request.delegate = self;
 [request start];
}

the response method

- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response
{
 [purchasableObjects addObjectsFromArray:response.products];
}

is not getting called at all. Only once did it call out of ten attempts I tried.

Edit
Report

1 Answer

48

Try to implement also - (void)request:(SKRequest *)request didFailWithError:(NSError *)error method - may be there're some errors in processing of your requests.

answered 2010-04-28T11:17:51.770

Your Answer