Android and Javascript: How to know in javascript that an application is installed in the Android device or not?
<p>I have an android app on Google Play and also an website where.</p>

<p>For the moment, I am using javascript to detect if the device connected to the website is an android device. If is, I am displaying a popup dialog on the device inviting the user to download the app from the PlayStore. If the user clicks ok, he will be redirected to the PlayStore page of my app, I f he clicks no, he will continue using the browser.</p>

<p>Now, the problem is that when the user have installed the app and tryes to access the webpage again, he will be asked again to download the app, even if he allready installed it (which is not a good idea).</p>

<p>Do you know a solution on how to check if the user has allready the app installed on his mobile device? </p>

<p>It is also possible to do android detection with php, so if you have a method with php to detect if the app is installed, I can also use it.</p>

<p>Thank you very much.</p>
