In app purchase not working after publishing iOS app to App Store
I had the same problem. The app was approved but in-app purchases were not working. After 24-48 of app publishing problem was fixed by its own. By the time app approved it was not appearing on App Store through search. After it was indexed on App Store in-apps started to work also.
It takes a little time even when everything is approved.
- My binary was approved.
- My In-App Purchase (IAP) was approved.
- Testing the purchase in development with a sandbox iTunes Account worked great.
- Purchasing in production with a real or sandbox iTunes Account would fail.
I didn't have to wait long, something like a couple hours and it just started working.
Now, my binary and my In-App Purhcase were approved at the same time and almost immediately after they were both approved, I released the app version to the store.
I'm not positive, but what I probably should have done was wait a couple hours before releasing that new app version and give the In-App Purchase a chance to "register" or "propagate" in the Production App Store.
Just a recommendation for others.
It takes some time, but the amount isn't predictable. In my case, I launched 3 very similar apps at the same time, so just add some data on this :
- Everything was approved, the apps were quickly available on the App Store.
- It took about 4 hours for 2 of the apps to show up in search results.
- After 6 hours, IAPs started progressively showing up (not all at once) for these
- After 9 hours, IAPs for the two apps were complete.
- After 12 hours, IAPs for the last app started appearing, but the last app itself still wasn't showing up in search results.
- After 14 hours, the last app appeared in search results.
The order in which I hit the "Publish" button didn't seem to have any influence, nor the number of IAPs, weight of the app, etc. So delays are unpredictable and do not follow a specific rule ("First-in, first-out" or "search results and then IAP")