启动app 微信登录成功后 去到微信浏览器里通过<wx-open-launch-app> 标签热启动app

- 发布:2022-03-24 01:51
- 更新:2022-10-13 16:36
- 阅读:1332
产品分类: uniapp/App
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: 12.0.1
HBuilderX类型: 正式
HBuilderX版本号: 3.3.11
手机系统: iOS
手机系统版本号: iOS 15
手机厂商: 苹果
手机机型: IPhone 13 pro max
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
app 在app.vue 里通过 plus.runtime.arguments 获得到<wx-open-launch-app> 标签配置的extinfo参数
app 在app.vue 里通过 plus.runtime.arguments 获得到<wx-open-launch-app> 标签配置的extinfo参数
实际结果:
然而每次都是¥¥¥¥¥¥¥://platformId=wechat
然而每次都是¥¥¥¥¥¥¥://platformId=wechat
bug描述:
当app使用微信登录、和跳转到小程序、以及微信支付和支付宝支付后 再返回app后 。 还想从微信浏览器通过<wx-open-launch-app>标签热启动后台App时,app通过plus.runtime.arguments 获取到的值都是固定的 [APPID]://platformId=wechat 参数 并不是<wx-open-launch-app> 标签的extinfo数据。如果不进行(微信登录、跳转到小程序、微信支付、支付宝)这些操作。通过微信浏览器<wx-open-launch-app>标签都是可以获取到参数的
Dright (作者)
没用的
2022-06-03 14:22
Dright (作者)
plus.globalEvent.addEventListener('newintent', (e)=>{
let that = this
setTimeout(()=>{
let args = plus.runtime.arguments;
console.log('启动来源',plus.runtime.arguments)
// if(plus.runtime.launcher == 'uniLink'){
// plus.runtime.arguments = null;
// plus.runtime.arguments = "";
// plus.runtime.arguments = '';
// }
// console.log('55555555',args)
that.arguments(args)
},1000)
});
2022-06-03 14:22
百倍
回复 Dright: 解决了吗?我也遇到问题了,在iOS端微信浏览器内,通过 <wx-open-launch-app> 唤醒app,获取到的启动参数格式是[APPID]://platformId=wechat参数
2022-10-13 16:29
百倍
回复 百倍:app在关闭的情况下,被iOS端微信<wx-open-launch-app>唤醒,能正确获取到启动参数。从后台恢复的场景获取到的是参数格式是[APPID]://platformId=wechat参数,加延时2000结果也一样。
2022-10-13 16:39