StoreRules

规则 · 前台设备位置访问和位置按钮的最低权限范围 · 何时必须使用位置按钮

Example Implementation (Manifest)

通俗解读

如果您的应用仅通过位置按钮获取精确位置,则必须在 AndroidManifest.xml 中声明带有 onlyForLocationButton 标志的 ACCESS_FINE_LOCATION。

  • 在 android.permission.ACCESS_FINE_LOCATION 的 uses-permission 条目上使用 android:usesPermissionFlags=“onlyForLocationButton” 属性。
  • 该声明适用于仅通过按钮需要精确位置的情况。
  • 技术细节请参阅 API 文档。

摘要由 StoreRules 撰写,并与官方原文核对。

官方原文摘录

If your app only requires precise location via the button, you must declare it in your AndroidManifest.xml using the onlyForLocationButton attribute: XML | <uses-permission android:name="android.permission.ACCESSFINELOCATION" android:usesPermissionFlags="onlyForLocationButton" / | For technical details, please consult …

阅读官方全文 ↗ 在 StoreRules 规则库中打开 询问你的应用是否合规

变更历史

自 StoreRules 开始跟踪以来没有实质性变化。

首次出现: 2026-10-26

开发者关于此条款的案例

暂无案例。

分享你的案例