夫子仰慕者
夫子仰慕者
  • 发布:2025-06-09 11:49
  • 更新:2025-06-09 11:49
  • 阅读:8

【报Bug】在iOS上获取经纬度信息iOS手机上回报这种错误

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: mac 15.4

HBuilderX类型: 正式

HBuilderX版本号: 4.66

手机系统: iOS

手机系统版本号: iOS 18

手机厂商: 苹果

手机机型: 18.5

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

调用
export function getUserLocationDataInfo(pageInfo: string) {
//用户名
const username = DataProviderFactory.getUsername();
return new Promise((resolve, reject) => {
uni.getLocation({
type: 'gcj02', //返回可以用于uni.openLocation的经纬度
success: async (locData) => {

    resolve(locData);  
  },  
  fail: async (e) => {  

    resolve(e);  
  },  
});  

});
}
会报以下错误,我是升级了最新的SDK 4.66

操作步骤:

必现

预期结果:

不报以上错误,同时有什么办法可以解决

实际结果:

现在是在报错

bug描述:

会报以下错误,我是升级了最新的SDK 4.66
This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the -locationManagerDidChangeAuthorization: callback and checking authorizationStatus first.
<Weex>[log]WXBridgeContext.mm:1323, jsLog: 进入同步状态页面 at pages/sales/vue/home/index.ts:422 __LOG
This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the -locationManagerDidChangeAuthorization: callback and checking authorizationStatus first.

2025-06-09 11:49 负责人:无 分享
已邀请:

要回复问题请先登录注册