Bridegroom777
Bridegroom777
  • 发布:2018-06-19 16:40
  • 更新:2018-06-20 10:49
  • 阅读:1389

【报Bug】plus.runtime 打开百度地图失败

分类:HTML5+

详细问题描述
[内容]

if(plus.os.name == 'iOS') {  
                                plus.runtime.launchApplication({  
                                    action: "baidumap://map/direction?origin=latlng:39.98871,116.43234|name:我的位置&destination=40.007623,116.360582&mode=driving&src=webapp.navi.hanguosoft.yinyijianghu"  
                                }, function(e) {  
                                    alert("打开百度地图失败: " + e.message);  
                                    console.log(JSON.stringify(e))  
                                });  
                            }  

重现步骤
[步骤]将origin的值改成name和经纬度都有的时候提示该功能不支持,只保留经纬度可以打开地图
[结果]
[期望]可以设置name

运行环境
[系统版本]iOS 11.3
[浏览器版本]
[IDE版本]
[mui版本]

附件
[代码片段]
[安装包]

联系方式
[QQ]
[电话]

2018-06-19 16:40 负责人:无 分享
已邀请:
Bridegroom777

Bridegroom777 (作者) - emmm

安卓手机的话就直接打开APP,连导航模式都没打开。。

回梦無痕

回梦無痕 - 暂停服务

使用schemes唤醒的话,直接使用openURL方法就行了
http://www.html5plus.org/doc/zh_cn/runtime.html#plus.runtime.openURL


plus.runtime.openURL( "baidumap://map/direction?origin=latlng:39.98871,116.43234|name:我的位置&destination=40.007623,116.360582&mode=driving&src=webapp.navi.hanguosoft.yinyijianghu", function(error){  
alert("打开百度地图失败);  
});
  • Bridegroom777 (作者)

    还是一样的,报错无效的参数

    2018-06-20 11:40

该问题目前已经被锁定, 无法添加新回复