您好,我也遇到了uni.chooseLocation调用出现同样问题。但是在ios系统微信中定位准确,微信跟PC定位表现一致,楼主解决了吗?求赐教
使用uni-app开发h5页面 唤起地图组件安卓设备卡顿,并且定位不准确?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) } }); 控制台报错: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. [图片]
2020-05-06