How to Link to Apps on the App Store

How to link to apps on the app store

Edited on 2016-02-02

Starting from iOS 6 SKStoreProductViewController class was introduced. You can link an app without leaving your app. Code snippet in Swift 3.x/2.x and Objective-C is here.

A SKStoreProductViewController object presents a store that allows the
user to purchase other media from the App Store. For example, your app
might display the store to allow the user to purchase another app.


From News and Announcement For Apple Developers.

Drive Customers Directly to Your App
on the App Store with iTunes Links
With iTunes links you can provide your
customers with an easy way to access
your apps on the App Store directly
from your website or marketing
campaigns. Creating an iTunes link is
simple and can be made to direct
customers to either a single app, all
your apps, or to a specific app with
your company name specified.

To send customers to a specific
application:
http://itunes.com/apps/appname

To send
customers to a list of apps you have
on the App Store:
http://itunes.com/apps/developername

To send customers to a specific app
with your company name included in the
URL:
http://itunes.com/apps/developername/appname


Additional notes:

You can replace http:// with itms:// or itms-apps:// to avoid redirects.

Please note that itms:// will send the user to the iTunes store and itms-apps:// with send them to the App Store!

For info on naming, see Apple QA1633:

https://developer.apple.com/library/content/qa/qa1633/_index.html.

Edit (as of January 2015):

itunes.com/apps links should be updated to appstore.com/apps. See QA1633 above, which has been updated. A new QA1629 suggests these steps and code for launching the store from an app:

  1. Launch iTunes on your computer.
  2. Search for the item you want to link to.
  3. Right-click or control-click on the item's name in iTunes, then choose "Copy iTunes Store URL" from the pop-up menu.
  4. In your application, create an NSURL object with the copied iTunes URL, then pass this object to UIApplication' s openURL: method to open your item in the App Store.

Sample code:

NSString *iTunesLink = @"itms://itunes.apple.com/app/apple-store/id375380948?mt=8";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink]];

iOS10+:

 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink] options:@{} completionHandler:nil];

Swift 4.2

   let urlStr = "itms-apps://itunes.apple.com/app/apple-store/id375380948?mt=8"
if #available(iOS 10.0, *) {
UIApplication.shared.open(URL(string: urlStr)!, options: [:], completionHandler: nil)

} else {
UIApplication.shared.openURL(URL(string: urlStr)!)
}

Where to find app url link in App Store Connect for beta app in the year 2019?

After updating new design of iTunes connect, apple has removed "View on App Store" button option to see your app link.

It's only display when your app is Approved by apple (first time). after it will always visible for that app.

Another option for us until apple will enable that option:

https://apps.apple.com/app/id{{appId}}

Reference: https://help.swiftic.com/hc/en-us/articles/201574352-Add-Your-App-s-Apple-App-Store-URL-to-your-Landing-Page

How to set an App Store link correctly?

You're correct that the web links are localised. However, if you click 'View in iTunes' from that link or indeed launch any link that opens iTunes then the user is taken to the product on the correctly localised version of the store. I've just tested it with the web link you give above — clicking 'View in iTunes' took me to your product on the UK store, with UK pricing.

The direct to iTunes link you supply doesn't work, but you seem not to have substituted your product id for the 99999999999 placeholder.

I'm not sure which you'd consider better; Apple seem to be pushing the web preview URLs, based on the new behaviour of right clicking and selecting 'Copy Link' while in iTunes itself. Also, the type of link that you expect to open iTunes, with your product id substituted (ie, http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=308928075&mt=8) now appears to go to the web preview rather than to open iTunes. As a quick tip, this appears to be the 'international' version:

http://itunes.apple.com/app/id308928075?mt=8

i.e. just remove the 'us'. My browser still went to the US listing based on the price and reviews, but I'll bet it does something to at least get the display language correct.

Open AppStore through button

Here. But I highly suggest you learn the basics of Swift!

UIApplication.sharedApplication().openURL(NSURL(string: "itms://itunes.apple.com/de/app/x-gift/id839686104?mt=8&uo=4")!)

If you wanna open the AppStore in Swift 5:

if let url = URL(string: "itms-apps://apple.com/app/id839686104") {
UIApplication.shared.open(url)
}

Create iOS link to an App in the app store - best way?

Ok, so have done a lot of research/testing and here is my conclusion:

  1. Links you use in your code should not rely on the 'current' name of you app, since this might change over time (e.g. Light Alarm Lite vs Light Alarm Free). Therefore the following 4 are out IMHO:

    http://itunes.com/apps/seligmanVenturesLtd/mouseTrapFree

    http://itunes.com/apps/mouseTrapFree

    itms://itunes.com/apps/mouseTrapFree

    itms-apps://itunes.com/apps/mouseTrapFree

  2. That leaves itunes and phobos URLs. I have just tested both URLs via the iOS 6 share functionality (so this might be different on iOS 5, but given numbers are reducing daily for that I dont really mind). I tested accessing via SMS, Email, Facebook, Twitter (on an iPhone 5 and using a Mac).

Both url types produced near identical results, except for the following:

Phobos:
e.g. http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=346542660
+ None
- Sharing this link on facebook created a facebook link without any image... this was the showstopper for me that will mean I use iTunes urls going forward (see below).

iTunes
e.g. http://itunes.apple.com/gb/app/appName/id346542660?mt=8
+ When opening link on iphone 'Mail' app the app store opened within the 'Mail' app and no tabs along the bottom appeared, so arguably this creates increased focus on your app
- None

In summary, I will be going with itunes type urls going forward. eg:
e.g. http://itunes.apple.com/gb/app/appName/id346542660?mt=8

(Note: you don't have to stipulate the '/appName' in this url, just keeping it as '/appName/' works fine, which means you dont have to worry if you app name changes over time.

Cheers, Charlie

How do I get a link to AppStore app image?

Apple recently released a new tool that replaces itunes link maker. This tool can generates links to the app store image :

https://tools.applemediaservices.com/app-store

Link to list all apps by a developer in iPhone's App Store

For view Application page :

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms://itunes.apple.com/us/app/APPNAME/idApp?mt=8&uo=4"]];
//APPNAME = Application name, idApp = Application unique id

For view App from the developer

 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms://itunes.apple.com/us/artist/DEVNAME/idDEVID?uo=4"]];
DEVNAME = Developer name in small chars, idDEVID = developer id, you can get it from iTunes.

Update 1

If you have your App Id then you can get your developer id like,

https://itunes.apple.com/lookup?id=YourAnyAppID

Run this in web browser, and in response search for artistViewUrl word, this will give you URL, that List all APPs from Same Developer

Just keep in mind that replace http to itms to stop redirection.

Update 2

List all app of a developer , from: appstore.com/{developername}.

Get our single app link, from: appstore.com/appname. You can get this things when app get published.

May this helps.

HTH, Enjoy Coding!!



Related Topics



Leave a reply



Submit