On iPhone, how can you make the url display an entry in the App Store?

For example, if someone is viewing the URL of an application on an iPhone, we would like the URL to open the App Store and display the entry associated with this application. The idea is to allow the application to be downloaded with two clicks (click the link, then click the Install button) on the iPhone.

How is this possible?

[Edit] To clarify, from the iPhone application, how can we automatically start the correct recording in the App Store? I understand that mobile Safari recognizes the iTunes URL, but we prefer to launch the App Store without redirecting to mobile Safari.

+5
source share
3 answers

EDITED :

App Store URL-. Safari iTunes. Store:

itms-apps://

( ):

[[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"itms-apps://yourAppLinkHere"]];

iTunes Link Maker http://itunes.apple.com/linkmaker

:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"itms-apps://itunes.apple.com/us/app/its-on-my-way/id334996949?mt=8&uo=4"]];
+5

App Store URL :

http://itunes.com/app/your-app-name

, URL:

- (void) buyButtonPressed{
    NSURL *url = [NSURL URLWithString:@"http://itunes.com/app/your-app-name"];
    [[UIApplication sharedApplication] openURL:url];    
}
+1

You can simply copy the URL directly from iTunes and use it on your website. Mobile Safari will automatically detect that it should open the App Store.

To get the URL, just open iTunes, find the title you want, right-click on it and click on the link to copy. Here I just grabbed it, try it on your phone.

http://itunes.apple.com/us/app/flipboard/id358801284?mt=8

Edit - oh, are we talking about Objective-C or from a site? Sorry, this was not entirely clear.

+1
source

All Articles