1)When i share a link through phonegap plugin to whatsapp. When user clicks on link. it should check whether a particular app is installed or not. If yes, open that link in the application or else open play store link showing to download the app
The scenario you're describing, where the device intercepts an HTTP protocol link http://example.com
(as opposed to a custom URL scheme using example://
), is called "Deep Linking" on Android and "Universal Links" on iOS.
It's most easily achieved in a Cordova app for iOS and Android using the cordova-universal-links-plugin - full details and usage are on the plugin GitHub page.
I'm not aware of any currently existing plugins that make equivalent functionality available on the Windows platform
The standard solution to do mobile deep linking is now (on iOS9 and recent Android versions) the interception of http
links by specific apps, as described in the answer by @DaveAlden...
However, that solution does not allow you to achieve exactly what you want, since users who do not have the target app installed are directed to the normal website instead of the app store...
To achieve what you want you have to implement "old-style" deep linking with a custom URL scheme and some Javascript magic. It is easiest to do this by using one of the many deep linking solutions, e.g. deeplink.me, branch.io or Shortcut Media (disclaimer: I currently work for Shortcut Media).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With