373588504@qq.com
373588504@qq.com
  • 发布:2019-08-27 15:46
  • 更新:2019-08-27 15:46
  • 阅读:685

uni-app 打开第三方应用并传参

分类:uni-app

if(plus.os.name == 'Android'){
plus.runtime.launchApplication(
{
pname:'testapp'
},
function(e){
console.log('failed:' + e.message);
}
)
}else if(plus.os.name == 'iOS'){
plus.runtime.launchApplication(
{
action:'testapp://evaluateJavaScript?parameters={"function":"openAccountWin()","frameId":"newHome","winId":"homePage","parameters":{"aa":"vv"}}'
},
function(e){
console.log('failed:' + e.message);
uni.showToast({
icon: 'none',
title: 'ios failed'+ e.message
});
}

2019-08-27 15:46 负责人:无 分享
已邀请:

要回复问题请先登录注册