uni-app 中如何打开外部应用

  plus.runtime.openURL(this.url, function(res) { 
//this.url:
scheme例如 'alipay://'
console.log(res); }); 

2
   let _this = this;  
            // 判断平台  
            if (plus.os.name == 'Android') {  
                plus.runtime.launchApplication(  
                    {  
                        pname: 'com.taobao.taobao'  ,//包名
extra:{//参数
aa:111
}
}, function(e) { console.log('Open system default browser failed: ' + e.message); } ); } else if (plus.os.name == 'iOS') { plus.runtime.launchApplication({ action: 'taobao://' }, function(e) { console.log('Open system default browser failed: ' + e.message); }); } 

plus.runtime.isApplicationExist({ //查看安卓系统手机有没有下载这款app

pname: 'com.tencent.mm' //微信app云打包的包名

})


https://ask.dcloud.net.cn/article/35621
原文地址:https://www.cnblogs.com/jyc226/p/14850143.html