无效的 app.json permission["scope.userLocationBackground"] 这是我的app.json 大神们这个要怎么搞
{
"pages": [
"pages/lanhu_gengduogongjuye/component"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "Weixin",
"navigationBarTextStyle": "black"
},
"style": "v2",
"sitemapLocation": "sitemap.json",
"requiredBackgroundModes": [
"location"
],
"requiredPrivateInfos": [
"getLocation",
"onLocationChange",
"startLocationUpdate"
],
"permission": {
"scope.userLocationBackground": {
"desc": "获取您的后台位置"
},
"scope.userLocation": {
"desc": "获取用户位置"
}
}
}
格式问题,直接复制文档吧
https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#permission