VM2669:1 invalid appJSON["permission"]["scope.userLocationBackground"]
"permission": {
"scope.userLocation": {
"desc": "获取用户位置"
},
"scope.userLocationBackground": {
"desc": "后台获取用户位置"
}
}
设置获取userLocationBackground提示非法, userLocation正常
wx.openSetting也只有userLocation
试试?
在app.json中配置requiredBackgroundModes: ['location']
若认为该回答有用,给回答者点个[ 有用 ],让答案帮助更多的人