How to provide and handle deep links in cordova / phonegap applications

code4jhon picture code4jhon · Aug 1, 2014 · Viewed 20.9k times · Source

Hi I would like to know of a Cordova / Phonegap plugin or way to expose and handle deep-links in my Sencha Touch / Cordova App

So far I am able to deep-link into other applications lets say open Google Play to a specific app detail page.

Using this plugin https://github.com/code4jhon/org.apache.cordova.startapp

So what I would like to do is enable other applications to open specific views or functionalities in my application. I would like to support Android and IOS.

So bottom line is there a Cordova plugin to expose Activities for Android and their counterparts on IOS ?

Or how to achieve this?

Looked into Cordova docs but didn't find anything... any help, doc link would be very much appreciated.

Answer

mentat picture mentat · Aug 10, 2014

You can try https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin

It worked perfectly for me.

remember to clean/build after installation

You can handle variable implementing handleOpenURL

function handleOpenURL(url) {
  console.log("received url: " + url);
}