Minimum scope requirements for device location APIs
通俗解读
仅请求核心功能所需的最小位置权限;面向 Android 17 或更高版本的应用,一次性精确位置应使用 Android 位置按钮,ACCESS_FINE_LOCATION 仅作为最后手段。
- 如果不需要精确位置,应使用大致位置;如果不需要后台访问,应使用前台位置。用户应能合理预期所请求的位置访问级别。
- 如果应用在没有充分理由的情况下请求后台位置,Google 可能会拒绝该应用。
- 面向 Android SDK 37(Android 17)或更高版本、且仅需在用户发起的一次性操作中使用精确位置的应用,必须使用 Android 位置按钮,并在清单中声明 onlyForLocationButton 标志。
- 只有当 Android 位置按钮(面向 Android 17+ 目标)和 ACCESS_COARSE_LOCATION 都无法支持您的功能时,才可请求 ACCESS_FINE_LOCATION。
官方原文摘录
- Always request the minimum scope needed for your app's core functionality. Use coarse if your use case does not require precise location, and foreground if your use case does not require background. Users must reasonably expect the level of location access requested. We may reject apps that request background …
阅读官方全文 ↗ 在 StoreRules 规则库中打开 询问你的应用是否合规
变更历史
- · 修改
开发者关于此条款的案例
暂无案例。