小程序api使用敏感权限配置
//app.json
{
"pages": [
"pages/index/index", // 你的页面列表
// ...其他页面
],
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于定位当前城市或展示附近服务" // 已有的权限描述
}
},
// 新增:声明需要使用的隐私API
"requiredPrivateInfos": ["getLocation"]
}
最近访问时间:2025-10-03 04:31:00