uni-app 版本更新到3.1.8后,uni.getLocation在IOS端无法获得address 已设置geocode: true Android正常
uni-app 版本更新到3.1.8后,uni.getLocation在IOS端无法获得address 已设置geocode: true Android正常
示例代码:
uni.getLocation({
type: 'gcj02',
geocode: true,
success: (res) => {
console.log(res);
console.log(res.address);
}
})
操作步骤:
新建vue页面在onReady方法中查询定位信息
预期结果:
{
"type": "GCJ02",
"altitude": 415.9051151275635,
"latitude": 34.20214870876736,
"longitude": 108.8988245985243,
"speed": null,
"address":{
"poiName":"",
"street":"",
"streetNum":"",
"province":"",
"city":"",
"district":""
}
"accuracy": 68.86002867081368,
"errMsg": "getLocation:ok"
}
实际结果:
{
"type": "GCJ02",
"altitude": 415.9051151275635,
"latitude": 34.20214870876736,
"longitude": 108.8988245985243,
"speed": null,
"accuracy": 68.86002867081368,
"errMsg": "getLocation:ok"
}
bug描述:
版本更新到3.1.8后,uni.getLocation在IOS端无法获得address 已设置geocode: true
更多关于uni-app 版本更新到3.1.8后,uni.getLocation在IOS端无法获得address 已设置geocode: true Android正常的实战教程也可以访问 https://www.itying.com/category-93-b0.html
1 回复
更多关于uni-app 版本更新到3.1.8后,uni.getLocation在IOS端无法获得address 已设置geocode: true Android正常的实战教程也可以访问 https://www.itying.com/category-93-b0.html
IOS13.6.1,iPhone 6s Plus测试,未复现问题。