cordova plugin add https://github.com/initMrD/cordova-plugin-jumper.git
var appInfo =
{
urlSchema: '', //ios的Schema或者android的包名
suffixText: '', //传入参数(option)
downloadUrl: '' //APP下载地址(apk或者plist),当手机内找不到该应用会提示用户下载
}
cordova.plugins.Jumper.AppGo(appInfo,function (data) {
console.info(JSON.stringify(data));
});
cordova.plugins.Jumper.AppLiteGo("webapp的url");
declare let cordova;
var appInfo =
{
urlSchema: '', //ios的Schema或者android的包名
suffixText: '', //传入参数(option)
downloadUrl: '' //APP下载地址(apk或者plist),当手机内找不到该应用会提示用户下载
};
cordova.plugins.Jumper.AppGo(appInfo,function (data) {
console.info(JSON.stringify(data));
});
declare let cordova;
cordova.plugins.Jumper.AppLiteGo("webapp的url");
cordova plugin add https://github.com/initMrD/cordova-plugin-jumper.git
var appInfo =
{
urlSchema: '', //App Schema or App package name
suffixText: '', //param(option)
downloadUrl: '' //App download Url(plist or apk),if can not open APP,will be download it
};
cordova.plugins.Jumper.AppGo(appInfo,function (data) {
console.info(JSON.stringify(data));
});
cordova.plugins.Jumper.AppLiteGo("your webapp url");
declare let cordova;
var appInfo =
{
urlSchema: '', //App Schema or App package name
suffixText: '', //param(option)
downloadUrl: '' //App download Url(plist or apk),if can not open APP,will be download it
};
cordova.plugins.Jumper.AppGo(appInfo,function (data) {
console.info(JSON.stringify(data));
});
declare let cordova;
cordova.plugins.Jumper.AppLiteGo("your webapp url");