Itms-services // action = purchaseIntent does not open the application

In iOS11, Apple introduced IAP purchases that can be launched from the AppStore. To test this at WWDC17 What's New in StoreKit Video , they used the following URL scheme:

itms-services://?action=purchaseIntent&bundleId=com.example.app&productIdentifier=product_name 

Now I tried this several times using our development application (IAP objects are not in the store) and production application (IAP elements are stored). Has anyone got this job? Are there any special steps that I am missing?

EDIT: That turned out to be just as stupid as I was, sealing the URL. Instead of bunldeId =, I wrote bundleID =. Therefore, just be very careful as the URL is case sensitive. Fortunately, someone else made the same typo and found a solution: https://forums.developer.apple.com/thread/83709

+5
source share
1 answer

I had problems with this, the trick to get it working for me is to enter the full product id, for example com.company.app.pid. Apple's document was pretty misleading ...

+1
source

Source: https://habr.com/ru/post/1270678/


All Articles