Javascript Nexus 5上的Ionic 3 getCurrentPosition始终超时
我使用的是爱奥尼亚3,所有的插件都是最新的。 有一个“爱奥尼亚科尔多瓦插件ls” 当我尝试获取当前位置并使用Javascript Nexus 5上的Ionic 3 getCurrentPosition始终超时,javascript,android,cordova,ionic-framework,Javascript,Android,Cordova,Ionic Framework,我使用的是爱奥尼亚3,所有的插件都是最新的。 有一个“爱奥尼亚科尔多瓦插件ls” 当我尝试获取当前位置并使用 this.geo.getCurrentPosition(options).then((resp) => { console.log(res) }).catch(error => { console.log('Error getting location', error); }) 我总是在我的Nexus 5上获得一个位置错误代码3“超时过期” (在浏览器中一切正常)
this.geo.getCurrentPosition(options).then((resp) => {
console.log(res)
}).catch(error => {
console.log('Error getting location', error);
})
我总是在我的Nexus 5上获得一个位置错误代码3“超时过期”
(在浏览器中一切正常)
我已经为此挣扎了好几天,我尝试了GeolocalOptions和(hw)位置准确性的所有可能组合,我尝试了几次重新启动我的设备,我的android清单权限是正确的。
我还试图删除/重新安装插件,并删除/添加“android平台”到cordova,但没有任何效果 我也有同样的问题
this.geo.getCurrentPosition(options).then((resp) => {
console.log(res)
}).catch(error => {
console.log('Error getting location', error);
})