Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
223 views
in Technique[技术] by (71.8m points)

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

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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);
}

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...