Cordova插件从浏览器使用URL模式启动应用程序 [英] Cordova Plugin for Launch App from Browser using URL Schemas
问题描述
我们可以从iOS和Android的浏览器启动应用程序..它是使用URL模式实现的。
We can launch apps from browser in iOS and Android both.. And it is implemented using URL schemas.
知道是否有任何Cordova插件来处理
Wnat to know is there any Cordova Plugin to handle above scenario..?
推荐答案
您尝试过 LaunchMyApp-PhoneGap-Plugin ?
(url: https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin )
它非常简单,基于定义自定义模式。
It is pretty straight forward and is based on defining custom schema.
我使用cordova build所以我唯一要做的是添加
I am using cordova build so the only thing I had to do was add
<gap:plugin name="nl.x-services.plugins.launchmyapp">
<param name="URL_SCHEME" value="MagicButtonApp" />
</gap:plugin>
,然后打开浏览器并输入 MagicButtonApp://
启动我的应用程序。显然,在现实世界的情况下,这将是一个网站上的链接!
and then open a browser and type in MagicButtonApp://
to launch my application. Obviously in a real world scenario this would be a link on a site!
这篇关于Cordova插件从浏览器使用URL模式启动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!