如何提供和处理cordova / phonegap应用程序中的深层链接 [英] How to provide and handle deep links in cordova / phonegap applications
问题描述
您好
我想知道一个Cordova / Phonegap插件或者在Sencha Touch / Cordova应用程序中公开和处理深层链接的方式
到目前为止,我能够深入链接到其他应用程序,让我们说打开Google Play到特定的应用程序详细信息页面。
So far I am able to deep-link into other applications lets say open Google Play to a specific app detail page.
使用此插件 https://github.com/ code4jhon / org.apache.cordova.startapp
所以我想做的是使其他应用程序在我的应用程序中打开特定的视图或功能。我想支持Android和IOS。
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.
因此,底线是否有Cordova插件来公开Android的活动及其在IOS上的对应方?
或者如何实现这个?
看到Cordova文档,但没有找到任何东西...任何帮助,doc链接将非常感谢
Looked into Cordova docs but didn't find anything... any help, doc link would be very much appreciated.
推荐答案
您可以尝试 https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin
它为我工作完美。
记住安装后清理/构建
您可以处理变量实现handleOpenURL
You can handle variable implementing handleOpenURL
function handleOpenURL(url) {
console.log("received url: " + url);
}
这篇关于如何提供和处理cordova / phonegap应用程序中的深层链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!