missfei
missfei
  • 发布:2023-07-13 18:56
  • 更新:2023-07-13 19:12
  • 阅读:235

plus.runtime.launchApplication 跳转到app 上,获取不到参数

分类:uni-app

我有2个app 通过plus.runtime.launchApplication 打开了另一个app ,但是在另一个app 中获取不到参数

plus.runtime.launchApplication({
action: "osmobile://?callback=interapp-callback=123&merchantKey=SG23323424EXS3"
}, function(e) {
uni.showToast({
icon:"none",
title:e.message
})
console.log("Open system default browser failed: " + e.message)
});

另一个app中在show 方法中 launcher是default argumen 参数也是空的
const launcher= plus.runtime.launcher;
console.log("onLaunch launcher="+launcher)
if(launcher&&launcher=="scheme"){
let argumen=plus.runtime.arguments;
if(argumen){
console.log("arguments=="+argumen)
}
}else{
console.log("arguments="+plus.runtime.arguments)
} // 处理args参数,如直达到某新页面等

       },1000);   
2023-07-13 18:56 负责人:无 分享
已邀请:
missfei

missfei (作者) - yufei

pages.json文件下condition节点去掉 重新自定义基座就可以了

  • y***@163.com

    感谢你 前辈 哈哈 我刚好ios遇到这个问题 百思不得其解 之前都是好好的 升级了就不行了

    2024-03-13 16:58

要回复问题请先登录注册