SKProductsRequest delegate methods are never called

This worked for me, but now no longer works, and I canโ€™t understand why. I have an app to buy apps in the app. I have confirmed that I have the correct set of product identifiers that matches the corresponding in-app purchase items in itunesconnect. The call goes to the Apple view [productRequest start] , but I never get a response, despite the delegate delegating it myself. What am I missing?

 NSLog(@"productIdentifiersSet: %@", productIdentifiersSet); if ([productIdentifiersSet count]) { SKProductsRequest *productRequest = [[SKProductsRequest alloc] initWithProductIdentifiers:productIdentifiersSet]; [productRequest setDelegate:self]; [productRequest start]; } 

.........

 - (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response { <never called> } - (void)requestDidFinish:(SKRequest *)request { <never called> } - (void)request:(SKRequest *)request didFailWithError:(NSError *)error { <never called> } 
+6
iphone delegates response storekit in-app-purchase
source share
2 answers

The same thing happened to me today. In the morning, my code worked, in the afternoon it did not work for 3-4 hours. I spent all my time and tried a lot of things. But a little earlier, he began to work himself. I didnโ€™t change anything.

I suppose we cannot trust Apple's servers about this.

+1
source share

Here is a good checklist that can solve these problems:

  • Go to Settings \ iTunes and App Stores, log out of any account and try again to make sure you are using a Sandbox account.
  • Check this link if it does not respond, the iTunes sandbox may not be available.
  • Have you enabled in-app purchase for your app id?
  • Do your .plist Bundle ID projects match your application ID?
  • Do you use the full product identifier when creating SKProductRequest?
  • Have you waited several hours since adding your product to iTunes Connect?
  • Are your bank details active in iTunes Connect?
  • Did you try to uninstall the application from the device and reinstall?
  • Once you have created your products for the purchase of applications, do not forget to add them to your game application on the page of your application in ituns connect.
+1
source share

All Articles