How to link to an app on the App Store (URL formats)
Codemia Knowledge Hub ·
Link to an App Store page with https://apps.apple.com/app/id<APP_ID>, where the ID is the app's numeric App Store ID. That HTTPS form is best for websites, messages and email. Inside an iOS app, the itms-apps scheme opens the App Store app directly, and SKStoreProductViewController shows the store page without leaving your app.
The HTTPS App Store URL
This works in browsers, on mobile devices and on desktop:
Apple also supports URLs that include the app name slug:
The numeric app ID is the important, stable part of the URL.
Opening the App Store from an iOS app with itms-apps
itms-apps skips the browser and usually opens the App Store app directly, which suits upgrade prompts and "rate this app" flows.
Use HTTPS when the link leaves your app
On a website, in documentation or in cross-platform UI, prefer HTTPS. It is more portable and degrades more gracefully outside iOS:
Show the store page inside your app
SKStoreProductViewController keeps the user in your app flow, which is useful for upgrade nudges:
Storefront regions
App Store URLs often include a storefront region such as /us/ or /gb/. Without one, Apple can often resolve the right storefront automatically, but region-specific links are common in marketing material. If your app is only in certain storefronts, test the link there before shipping campaigns or in-app prompts.
The app ID is not the bundle identifier
The app ID is the numeric identifier assigned in App Store Connect:
- bundle identifier:
com.example.myapp - App Store ID:
1234567890
Mixing these up is a common cause of broken links.
Linking to ratings and reviews
A direct review-page link is possible, but its URL pattern is more brittle than the main app page. For in-app review prompts, SKStoreReviewController is usually the better API where supported. In short:
- app page link for install or upgrade
SKStoreProductViewControllerfor in-app store displaySKStoreReviewControllerfor rating prompts
Mistakes to avoid
- Using the bundle identifier where the numeric App Store ID is required.
- Using
itms-appswhere a normal web URL would be more portable. - Sending users out of the app when an in-app store sheet would be a better experience.
- Hard-coding a storefront region without checking the app is available there.
- Treating rating prompts and store-page links as the same problem.
Related reading
- How to list out all the subviews in a uiviewcontroller in iOS?
- How to listen for a WebView finishing loading a URL?
- How to load a UIView using a nib file created with Interface Builder
- How to load a xib file in a UIView
- How to load an ImageView by URL in Android?
- How to load GIF image in Swift?
- How to load local html file into UIWebView
- How to load specific image from assets with Swift
.png&w=3840&q=75)
Tackling System Design Interview Problems
A short course that equips you with the skills to approach system design interviews methodically.
Start the free courseNo course covers this one yet
Basis Lab writes one for you from a sentence about what you want to be able to do, then teaches it and checks you understood. Your first course is free.
Build my courseData Structures & Algorithms practice on Codemia
Step through 300+ coding interview problems with animated visualisers that show the data structure changing as the code runs. The Blind 75 are free.