uni.getLocation({
type: 'wgs84',
geocode: true,
success: function(res) {
console.log(res)
}
});

- 发布:2023-02-01 15:39
- 更新:2023-02-01 16:21
- 阅读:199
【报Bug】IOS端无法发起位置授权,uni.getLocation 不可用
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX类型: Alpha
HBuilderX版本号: 3.7.0
手机系统: iOS
手机系统版本号: iOS 15
手机厂商: 苹果
手机机型: iphone11
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
uni.getLocation({
type: 'wgs84',
geocode: true,
success: function(res) {
console.log(res)
}
}); 无响应
uni.getLocation({
type: 'wgs84',
geocode: true,
success: function(res) {
console.log(res)
}
}); 无响应
预期结果:
IOS端可以无法发起位置授权,uni.getLocation 可用
IOS端可以无法发起位置授权,uni.getLocation 可用
实际结果:
IOS端无法发起位置授权,uni.getLocation 不可用
IOS端无法发起位置授权,uni.getLocation 不可用
bug描述:
IOS端无法发起位置授权,uni.getLocation 不可用
1 个回复
黑讯科技 (作者)
重启手机正常了