用手机相机扫码二维码(url schema的值)点击进入APP,打印plus.runtime
- 发布:2023-05-10 11:55
- 更新:2023-05-23 17:08
- 阅读:551
【报Bug】自定义基座,使用url schema唤起iOS,plus.runtime.launcher和plus.runtime.arguments获取的参数都是一样的
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: window 10
HBuilderX类型: 正式
HBuilderX版本号: 3.7.9
手机系统: iOS
手机系统版本号: iOS 14
手机厂商: 苹果
手机机型: iPhone 6s
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
用手机相机扫码二维码(url schema的值)点击进入APP,打印plus.runtime,plus.runtime.launcher = 'scheme' , plus.runtime.arguments 为对应请求的参数
用手机相机扫码二维码(url schema的值)点击进入APP,打印plus.runtime,plus.runtime.launcher = 'scheme' , plus.runtime.arguments 为对应请求的参数
实际结果:
用手机相机扫码二维码(url schema的值)点击进入APP,打印plus.runtime,plus.runtime.launcher = 'default' , plus.runtime.arguments='{\"name\":\"\",\"path\":\"\",\"query\":\"\",\"id\":0}'
用手机相机扫码二维码(url schema的值)点击进入APP,打印plus.runtime,plus.runtime.launcher = 'default' , plus.runtime.arguments='{\"name\":\"\",\"path\":\"\",\"query\":\"\",\"id\":0}'
bug描述:
在自定义基座中,使用url schema唤起iOS,plus.runtime.launcher和plus.runtime.arguments获取的参数和普通唤起的参数都是一样的
plus.runtime: {
"appid": "xxxxxxxx",
"arguments": "{\"name\":\"\",\"path\":\"\",\"query\":\"\",\"id\":0}",
"version": "0.0.01",
"innerVersion": "1.9.9.81125",
"uniVersion": "3.7.9",
"launchLoadedTime": 0,
"launcher": "default",
"origin": "default",
"processId": "702",
"startupTime": 1683690543.234226,
"restart": "function() { [native code] }",
"install": "function() { [native code] }",
"getProperty": "function() { [native code] }",
"quit": "function() { [native code] }",
"openURL": "function() { [native code] }",
"launchApplication": "function() { [native code] }",
"setBadgeNumber": "function() { [native code] }",
"openFile": "function() { [native code] }",
"openDocument": "function() { [native code] }",
"showPrivacyDialog": "function() { [native code] }",
"execCallback": "function() { [native code] }",
"isStreamValid": "function() { [native code] }",
"openWeb": "function() { [native code] }",
"isApplicationExist": "function() { [native code] }",
"processDirectPage": "function() { [native code] }",
"isCustomLaunchPath": "function() { [native code] }",
"updateInfo": "function() { [native code] }",
"getDCloudId": "function() { [native code] }",
"agreePrivacy": "function() { [native code] }",
"disagreePrivacy": "function() { [native code] }",
"isAgreePrivacy": "function() { [native code] }",
"downloadFile": "function() { [native code] }",
"versionCode": "1",
"channel": ""
}
问题已解决:
感谢:https://ask.dcloud.net.cn/question/95040
1 个回复
uniappyyds
赞