问题模块 | 框架类型 | 问题类型 | API/组件名称 | 终端类型 | 微信版本 | 基础库版本 |
---|---|---|---|---|---|---|
API和组件 | 小程序 | Bug | wx.getLocation | 客户端 | 6.7.3 | 2.2.5 |
- 当前 Bug 的表现(可附上截图)
一加5手机,使用电信4G流量,系统已开启了定位,并且微信的定位权限也已开放。
API获取坐标失败,并提示getLocation:fail:ERROR_NOCELL&WIFI_LOCATIONSWITCHOFF
- 预期表现
希望能够按照文档格式,正常返回数据
- 复现路径
- 提供一个最简复现 Demo
wx.getLocation({
altitude: true,
success: location_res=>{
console.log('location_res-------------------------->', location_res);
},
fail: pos_fail=>{
console.log('pos_fail-------------------------->', pos_fail);
}
})