1***@163.com
1***@163.com
  • 发布:2019-08-28 17:16
  • 更新:2021-07-29 11:19
  • 阅读:3127

使用uni-app开发h5页面 唤起地图组件安卓设备卡顿,并且定位不准确。ios良好

分类:uni-app
...  
// 跳转到地图()  
// 上面点击一个按钮,调用此方法,打开地图选择位置  
            routerMap() {  
                uni.chooseLocation({  
                    success(res) {  
                        console.log(res)  
                        console.log('位置名称:' + res.name);  
                        console.log('详细地址:' + res.address);  
                        console.log('纬度:' + res.latitude);  
                        console.log('经度:' + res.longitude);  
                    },  
                    complete(err) {  
                        console.log('结束' )  
                        console.log(err)  
                    }  
                });  
            },
2019-08-28 17:16 负责人:无 分享
已邀请:
1***@163.com

1***@163.com (作者) - 萌新

控制台报错:Ignored call to 'prompt()'. The document is sandboxed, and the 'allow-modals' keyword is not set.

[Violation] Geolocation access has been blocked because of a Feature Policy applied to the current document. See https://goo.gl/EuHzyv for more details.

maozai

maozai - 小程序开发者

请问怎么解决的?

1***@qq.com

1***@qq.com

请问怎么解决的?

1***@163.com

1***@163.com (作者) - 萌新

webview内嵌h5,需要把h5的域名升级为https就可以了;

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