Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to open app when clicked on link which is shared in whatsapp or any social app through phonegap?

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

like image 926
amar deep Avatar asked Oct 13 '15 13:10

amar deep


Video Answer


2 Answers

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

like image 114
DaveAlden Avatar answered Oct 20 '22 11:10

DaveAlden


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).

like image 45
severin Avatar answered Oct 20 '22 11:10

severin