-
Notifications
You must be signed in to change notification settings - Fork 2
Troubleshooting
Jean-Christophe Hoelt edited this page May 11, 2020
·
2 revisions
Make sure you followed the steps here: https://developer.apple.com/library/archive/technotes/tn2259/_index.html
Here's a another checklist with things sometimes not mentioned in the official Apple documentation.
- Have you enabled In-App Purchases for your App ID?
- Do you have a AppStore Paid Application contract in effect?
- Have you checked Cleared for Sale for your product?
- Are there any contracts waiting for approval?
- You need to have a iOS Paid Apps contract in effect for In App Purchase to work.
- Are your bank details active on AppStore Connect?
- In-App Purchases have all fields filled (including screenshots)?
- Did you wait 24 hours?
- Using a real device (not a simulator)?
- Are there any spelling mistake in your product ID?
- Have you submitted (and optionally rejected) your application binary?
- Does your project’s .plist Bundle ID match your App ID?
- Have you generated and installed a new provisioning profile for the new App ID?
- Have you configured your project to code sign using this new provisioning profile?
- Have you tried deleting the app from your device and reinstalling?
- Is your device jailbroken? If so, you need to revert the jailbreak for IAP to work.
The returned language depends on the AppStore you registered.
This might happen in development.
In production, as soon as the app is downloaded: a receipt is generated and loaded on the device. In development, if you install the app with XCode there's no receipt on the device. A call to "refreshReceipt" will try to load one from the AppStore, or generate a "development" receipt. This requires the user's AppStore password. This "problem" only happens on development devices.