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.
解决了??求助
APP+小程序+公众号+网页版开发
楼主解决了吗 我也遇到同样问题
您好,我也遇到了uni.chooseLocation调用出现同样问题。但是在ios系统微信中定位准确,微信跟PC定位表现一致,楼主解决了吗?求赐教
用手机测测?