如何在cordova/phonegap应用程序中提供和处理深层链接 [英] How to provide and handle deep links in cordova / phonegap applications

查看:40
本文介绍了如何在cordova/phonegap应用程序中提供和处理深层链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨我想知道 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

所以我想做的是让其他应用程序能够在我的应用程序中打开特定的视图或功能.我想支持安卓和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 文档,但没有找到任何东西...任何帮助,非常感谢文档链接.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆