微信公众号,安卓调用定位,出现getLocation:timeout?
ios一切正常,就是安卓机老是出现getLocation:timeout,目前使用的测试机华为安卓,都会出现,微信版本是7.0.6
componentDidMount() { window.wx.ready(() => { this.getLocation() })}// eslint-disable-next-line class-methods-use-thisgetLocation() { window.wx.getLocation({ type: 'wgs84', success: () => { }, fail: (res) => { console.log(res) }, complete: () => { }, })} |
