On the iOS11 Apple introduced IAP purchases that can be initated from the AppStore. For testing this, in WWDC17 Whats new in StoreKit video they gave the following URL scheme to use:
itms-services://?action=purchaseIntent&bundleId=com.example.app&productIdentifier=product_name
Now I've tried this several times with both of our Development app (IAP items not in store) and production app (IAP items are in store). Has anyone got this working? Are there some special steps I am missing?
EDIT: It ended up as silly as me typoing the URL. Instead of bunldeId=, I had written bundleID=. So just be super careful as the URL is case-sensitive. Luckily someone else had made the exact same typo and found the solution: https://forums.developer.apple.com/thread/83709
I had trouble with this as well, the trick to make it work for me is entering the full productIdentifier, like com.company.app.pid. Apple's doc was pretty misleading...
I got it worked by replacing those values (bunldeId
and productIdentifier
):
itms-services://?action=purchaseIntent&bundleId=com.app&productIdentifier=com.app.product.identifier
com.app
) can be found in your Xcode project: In the .pbxproj
file, look for General > Bundle Identifier
com.app.product.identifier
) can be found in App store connect > Features > In-App purchases > Product ID
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With