【uniapp报错】获取位置信息:fail the api need to be declared in the requiredPrivateInfos field in app/ext.json

{errMsg: “startLocationUpdate:fail the api need to be declared in the requiredPrivateInfos field in app.json/ext.json”}

源头:

请查看官方文档(官方文档)

在这里插入图片描述

解决方案:

uniapp项目,找到manifest.json文件,源码视图在里面配置权限

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/JunVei/article/details/126986553