Meaghan Fitzgerald
Meaghan Fitzgerald

Reputation: 2839

Creating web links that will open a website, iOS, Android or Win8 app depending on device

Does anyone have any suggestions for the best way to create a web link that, depending on the device the user is browsing with will direct them to a website (for laptop/desktops), the App Store (for iOS devices), the Play Store (for Android devices) or the Win8 store, with a default to the website if device type is unknown?

At the moment, the best option seems to be to direct users to a website exclusively, with smart banners that will show a link to the App Store on relevant devices using the following code in the site header:

<meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL">

But this is inelegant and can be missed by site visitors plus the additional step leads to a high dropoff. Any suggestions or thoughts would be appreciated!

Upvotes: 4

Views: 2900

Answers (1)

Sohan
Sohan

Reputation: 1287

Rather delayed reply but here goes:

  1. Detect which OS is being used using Javascript code. Link
  2. Change the hyperlink based on whether it is an iPhone Android or Windows.
  3. If its iPhone use this, if its Android use this and for Windows use this

Hope that helped!

Upvotes: 3

Related Questions