uniapp获取定位uni.getLocation报错getLocation:fail maybe not obtain GPS Permission.
报错1 getLocation:fail maybe not obtain GPS Permission.
报错2 getLocation:fail maybe not turn on the system location permission.
解决:
- 查看模拟器/手机定位服务开关:鸿蒙/安卓/ios模拟器/手机 默认可能关闭系统定位服务。请在模拟器设置中搜索"定位服务"或"位置信息",确保系统级定位开关已开启。
- 查看应用定位权限