1

Is there a method to determine in a web page if the device has a particular app installed?

Jason
  • 14,517
  • 25
  • 92
  • 153

2 Answers2

1

Depending on what you want to do, there is a way. Check out Launching an app with a custom url scheme.

If you want to get your mobile browsers to download/use your application, you can set it up with a custom url scheme as detailed in that post. From safari, add a link to your app's custom url. If you get an error or aren't redirected when a link is clicked or triggered (which you can check for with a setTimeout()) Then the app is not installed.

I don't know what your use case is, so that's the best I can do.

Johnny Sparks
  • 360
  • 2
  • 7
1

If you're just trying to promote your app only if it isn't installed, you can add a meta tag to the page:

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

For more information, see Promoting Apps with Smart App Banners on Apple's developer website.

If that's not what you're trying to do, this answer may be helpful.

Community
  • 1
  • 1
Joshua Dwire
  • 5,415
  • 5
  • 29
  • 50