IOS8 SKStoreProductViewController termination block not called

I found that it works on iOS 8 devices (real devices):

[storeProductViewController loadProductWithParameters:@{SKStoreProductParameterITunesItemIdentifier:appID} completionBlock:^(BOOL result, NSError *error) { // In many cases we never get here! }]; 

I have a valid application id. It works sequentially on iOS7, but is very vulnerable to iOS8. It seems that there is no timeout, it just does not show content.

Does anyone else see this? Do you have a solution?

+6
source share
1 answer

I had the same problem. Perhaps your Apple ID doesn’t allow you to buy in-store products containing a specific product? In my case, I tried to show products from American iTunes, but the account was set up for the Russian iTunes store.

To catch this situation, try the following steps:

  • Open itunesconnect, do it using "Users and Roles" β†’ "Sandbox Testers", then create a test user according to the country-specific iTunes Store.

itunesconnect, Users and Roles screen

  1. Sign out of your Apple account on your mobile device.

  2. Log in with your test apple account

  3. Restart the application and try to open the product using SKStoreProductViewController.

PS: Apple StoreKit is still a headache for developers ... Without correctly registering errors (((

0
source

Source: https://habr.com/ru/post/976072/


All Articles