【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文件,源码视图在里面配置权限

在这里插入图片描述


版权声明:本文为JunVei原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。