I am creating a free version of my iPhone game. I want to have a button inside the free version that takes people to the paid version in the app store. If I use a standard link
http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=300136119&mt=8
the iPhone opens Safari first, and then the app store. I have used other apps that open the app store directly, so I know it is possible.
Any ideas? What is the URL Scheme for the app store?
Try this way
http://itunes.apple.com/lookup?id="your app ID here" return json.From this, find key "trackViewUrl" and value is the desired url. use this url(just replace
https://
withitms-apps://
).This works just fine.For example if your app ID is xyz then go to this link http://itunes.apple.com/lookup?id=xyz
Then find the url for key "trackViewUrl".This is the url for your app in app store and to use this url in xcode try this
Thanks
Apple just announced the appstore.com urls.
https://developer.apple.com/library/ios/qa/qa1633/_index.html
At least iOS 9 and above
An app
List of developer's apps
A number of answers suggest using 'itms' or 'itms-apps' but this practice is not specifically recommended by Apple. They only offer the following way to open the App Store:
Listing 1 Launching the App Store from an iOS application
See https://developer.apple.com/library/ios/qa/qa1629/_index.html last updated March, 2014 as of this answer.
For apps that support iOS 6 and above, Apple offers a in-app mechanism for presenting the App Store:
SKStoreProductViewController
Note that on iOS6, the completion block may not be called if there are errors. This appears to be a bug that was resolved in iOS 7.
If you have the app store id you are best off using it. Especially if you in the future might change the name of the application.
If you don't have tha app store id you can create an url based on this documentation https://developer.apple.com/library/ios/qa/qa1633/_index.html
Passes this test
If you want to open an app directly to the App Store, you should use:
itms-apps://...
This way it will directly open the App Store app in the device, instead of going to iTunes first, then only open the App Store (when using just itms://)
Hope that helps.
EDIT: APR, 2017. itms-apps:// actually works again in iOS10. I tested it.
EDIT: APR, 2013. This no longer works in iOS5 and above. Just use
and there are no more redirects.