Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make ios App Store link with parameters?

The new "smart app banners" have a method where you can pass parameters to yor app so that it can know, for examples what page on your site the user was on before they bought your app. This is useful, for example, with a news site where you ant to show them the article you were previously displaying.

The way to do this with he smart app banners is:

<meta name="apple-itunes-app" content="app-id=311507490, app-argument=http://bookID/1234"/>

Is there a way to make a general link that does this, instead of a smart app banner?

like image 589
Jason Avatar asked Nov 08 '12 22:11

Jason


People also ask

How do I get the iOS App Store link?

Step 1: Go to the Apple App Store on your iOS device. Step 2: Search for your app and go to the app page. Step 3: Tap the Share Sheet button on the top right of the screen, then choose Copy Link. You can also share your app with others using available sharing methods, such as Skype.

Do iOS apps have URLs?

Nearly all iOS apps assign themselves one or more URL scheme names. Many also code in various path, parameter, anchor, query, and fragment components for specific requests (sometimes called “deep links”).


1 Answers

The advantage of smart app banners is that the iOS detects if the app is installed or not. If it is installed on the device the banner opens the app directly. Otherwise it takes you to the app store.

A disadvantage is that they only show up in mobile safari and they require iOS 6.

As an alternative you could use custom URL schemes. The application has to implement this scheme. The URL would look like this: myapp://bookID/1234.

You can also check if this link works (app is installed) using javascript.

like image 152
Felix Avatar answered Oct 11 '22 11:10

Felix