小程序api使用敏感权限配置
xuexi 2025-09-27 11:51:50 发表在:JS 查看数:37
//app.json
{
  "pages": [
    "pages/index/index",  // 你的页面列表
    // ...其他页面
  ],
  "permission": {
    "scope.userLocation": {
      "desc": "你的位置信息将用于定位当前城市或展示附近服务"  // 已有的权限描述
    }
  },
  // 新增:声明需要使用的隐私API
  "requiredPrivateInfos": ["getLocation"]
}
最近访问时间:2025-10-03 04:31:00
知识库:386条鸣谢:TAY  备案号:蜀ICP备2024090044号-1