Testing promoted In-App Purchases
Test your In-App Purchases before making your app available in the App Store.
Overview
Users can buy promoted In-App Purchases from the App Store, but you need to test this flow before making your product publicly available. Apple provides a system URL that triggers your app using the itms-services:// protocol, so you can test In-App Purchases before they’re available in the App Store.
Protocol |
|
|---|---|
Parameter |
|
Parameter | The bundle ID for your app; for example: [Image] |
Parameter | The In-App Purchase product ID you want to test; for example: [Image] |
The resulting URL looks like this:
itms-services://?action=purchaseIntent&bundleId=com.example.app&productIdentifier=com.example.product
Send this URL to yourself in an email or iMessage, and open it from your device. You’ll know the test is running when your app opens automatically. You can then test how your app handles the promoted In-App Purchase.