StoreKit In App Purchase invalid product identifiers

Viewed 56974

I am getting an empty array of product identifiers from SKProductsRequest.

I did the following steps:

  1. Created a In App Purchase Test User account under 'Manage Users' in iTunes Connect

  2. Created some in app purchase products under 'Manage Your In App Purchases'.

  3. Loaded the app onto the iPhone, went to Settings → Store and logged out of the regular store

  4. Set a breakpoint in the (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response callback

All the submitted Product ID's are in the response's invalidProductIdentifiers property. When submitting the request I tried both the Product IDs created during step 2 as well as those IDs prefixed with the Bundle ID.

Thanks in advance,

Raghu

16 Answers

The contract for paid applications must be in effect in order to receive data about the in app purchases configured.

This worked for me. I had the exact same problem.

Is your In App Purchase "Cleared for Sale"? That's the setting that I didn't check first time.

Setting the Product Name to the same name submitted to iTunes Connect solved it for me.

I discovered today another thing that can cause this sort of problem. Some times, for strange reasons, the app gets corrupted and all tries to buy something end in error. I solved my problem deleting the app from the device, cleaning the build on Xcode and building it again to the device.

Make sure your "Product Name" in xcode is the same as the app submitted to iTunes Connect.

Related