Testing In-App Purchase promotion with App Store build before enabling on App Store

Hi,


I used the following documentation: https://developer.apple.com/documentation/storekit/in-app_purchase/testing_promoted_in-app_purchases to test in-app purchase workflows initiated from the app store promotions. The test URL (itms-services://?action=purchaseIntent&bundleId=com.example.app&productIdentifier=product_name) worked just fine with a development build as it launched the app and initiated the purchase process but when I tried to use it with an app store build it didn't work (app would not launch). Is this the expected behavior? And if so, is there a way to test the workflow with app store builds before I enable the app store promotions?

Were you using the correct bundle id? For a lot of developers the bundle id is different for local builds than for production builds.

Were you ever able to figure this out? I am also having trouble using the itms-services://?action=purchaseIntent... URL to launch my production build.

It seems to work for me, however I would like to show a certain screen when the app is opened through the itms-services://?action=purchaseIntent... URL. But when I tap the URL none of my App Delegate life cycle funcs are being called, except applicationWillResignActive, but can't read the information in the URL. Is there a way to read out the intent and productID when the app is being opened this way?

Testing In-App Purchase promotion with App Store build before enabling on App Store
 
 
Q