获取位置接口已经在app.json设置了,但是还是报错
errMsg: "getLocation:fail the api need to be declared in the requiredPrivateInfos field in app.json/ext.json"
app.json设置
"permission": {
"scope.userLocation": {
"desc": "需要获取您的地理位置,否则该功能将无法正常使用"
}
},
"requiredPrivateInfos": ["getLocation"],