- Tuya MiniApp IDE 版本信息:0.8.8
- App 应用版本信息: 设置-关于中进行查看~
ios为 6.4.0
安卓为 智能生活 6.4.1 - @ray-js/ray, @ray-js/panel-sdk的版本
面板小程序为: "@ray-js/ray": "1.6.20",
智能小程序为: "@ray-js/ray": "latest", - 移动设备信息:
ios为 iphone13 系统为18.3.2
安卓为 华为 nove 6 SE 系统为 HarmonyOS 3.0.0 - 相关代码:
Code: Select all
navigateToMiniProgram({ appId: 'xxx', extraData: { devId: devInfo.devId, dps1: items[0].dps, dps2: items[1].dps, }, success: (info) => { console.log('跳转成功',info); }, fail: (err) => { console.log('跳转失败', err); } });
- 日志信息:
ios端跳转到智能小程序,可以获取传入的数据,并可以打开debug模式
安卓端 获取不到数据且打不开debug模式 - 问题描述(复现步骤):安卓端由面板小程序跳转到智能小程序,智能小程序无法获取到传递的数据且打不开debug模式
- 预期结果:安卓端和ios端一致
- 实际结果:安卓端获取不到数据
- App 应用版本信息: 设置-关于中进行查看~
navigateToMiniProgram跳转的时候传入参数,ios和安卓端出现不一致
-
- Posts: 159
navigateToMiniProgram跳转的时候传入参数,ios和安卓端出现不一致
Last edited by silverlight on 2025年 Apr 22日 14:11, edited 2 times in total.
Tags:
-
- Posts: 159
Re: navigateToMiniProgram跳转的时候传入参数,ios和安卓端出现不一致
现在安卓端跳转到智能小程序除了获取不到参数,还有一个问题则是跳转到的智能小程序,无法进入debug模式
Re: navigateToMiniProgram跳转的时候传入参数,ios和安卓端出现不一致
麻烦在安卓上复现一下相关场景,上传一下日志,并提供一下复现的时间和账号吧。
-
- Posts: 159
Re: navigateToMiniProgram跳转的时候传入参数,ios和安卓端出现不一致
时间2025/4/22/9:59,账号私信给你
-
- Posts: 159
Re: navigateToMiniProgram跳转的时候传入参数,ios和安卓端出现不一致
这是ios和安卓之间的差异嘛?
我通过工单获取到的解决方案:智能小程序接受数据改为通过getEnterOptionsSync的launchOptions来获取参数,目前问题已经解决
(我原先是从query里面获取的)
第二个问题,安卓端跳转到进入的智能小程序无法进入debug模式,直接进入智能小程序是可以打开debug模式的,但是跳转进入的则不行。
Code: Select all
function debugMode() {
changeDebugMode({
isEnable: true, // 开启调试模式
success: function () {
console.log('success');
},
fail: function (e) {
console.log('fail', e);
},
complete: function () {
console.log('complete');
}
});
}
Re: navigateToMiniProgram跳转的时候传入参数,ios和安卓端出现不一致
安卓上只有体验版本的小程序才能正常打开debug模式
-
- Posts: 159