suddenly productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response method never called

Hello.

I tested it in a sandbox environment yesterday.

Suddenly this morning In App Purchase system does not work.


I don't know Why this problem happen.

It was the same with the old code.


I tested until yesterday, submitted a binary app to the App Store, and the app is approved.

I tested before distributing my app, but In-app Purchase did not work.


     NSSet* productIdentifier = [NSSet setWithObject:productIdentifiers.productCode];
     SKProductsRequest *productsRequest = [[SKProductsRequest alloc]initWithProductIdentifiers:productIdentifier];
     productsRequest.delegate = self;
     [productsRequest start];


and..



- (void) productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response


never called... No error any response... No....

Hello.

Can you check handling errors delegate?

Thanks.


@protocol SKRequestDelegate <NSObject>
@optional
- (void)request:(SKRequest *)request didFailWithError:(NSError *)error NS_AVAILABLE_IOS(3_0);

You wrote:

>the app is approved.


So; are you talking about testing in the sandbox environment or testing in the production environment?


If it is the production environemnt and the IAPs were just approved - then they have not been entered into the system yet as approved IAPs. That takes 24-48 hours.


If you are testing in the sandbox environment - are you sure you are testing in teh sandbox environemnt? Did you delete old builds and log out of the app store before relaoding from XCode?

Of course I checked.


Thank you for your reply. 🙂


I did not do anything, but.. It is fixed. after 2days App Purchas is works.

Neither is working in the both environment.


I do not know exactly what the cause is, but it will work after 2days.


Thank you for your reply. 🙂

I just had the same problem. No response following an SKProductsRequest. I was able to resolve it by rebooting my phone.

suddenly productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response method never called
 
 
Q