Android : Click on a browser button to download or open app

How can I create a page like below?

I want to track the button on click event from the android mobile browser.
If the user already installed the myApp android application just open it, otherwise redirect user to the myApp Google play store page.

In IOS they have something called “Smart App Banners“. They do this in the web page.

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

I tried to use this jQuery plugin similar to the IOS, but I could only go to play store. I couldn’t open the app with it.

What is the best way to archive this function?
Any help, sample codes (html, jQuery, java) or resources/links will be appreciated.

Thank you!

sample


Source: jquery

Leave a Reply