Is there a way to detect if a specific app is installed on (Android\iOS) device from Javascript?
<p>I want to run JS code on Safari (iOS) or Chrome (Android) to detect for example, if <em>WhatsApp</em> is installed on the device.</p>

<p>I played with:</p>

<p><a href="https://stackoverflow.com/questions/13044805/how-to-check-if-an-app-is-installed-from-a-web-page-on-an-iphone">How to check if an app is installed from a web-page on an iPhone?</a></p>

<p>and</p>

<p><a href="https://github.com/hampusohlsson/browser-deeplink" rel="nofollow noreferrer">https://github.com/hampusohlsson/browser-deeplink</a></p>

<p>But the problem is that if the app is installed on the device - the browser re-directs to the app. I want to stay on the page after the "detection stage", is that possible to do?</p>