StoreRules

规则 · 前台设备位置访问和位置按钮的最低权限范围 · Android 位置按钮(Android 17 及更高版本强制要求)

Next Steps & Best Practices

通俗解读

开发者应检查应用是否以 Android 17 及以上版本为目标,以及是否在一次性任务中使用精确位置,然后添加 onlyForLocationButton 标志,并使按钮界面符合 Android 设计指南。

  • 审查代码,确认应用是否以 Android 17 及以上版本为目标,以及是否在一次性任务中使用精确位置。
  • 如果需要位置按钮,请在清单文件中使用 onlyForLocationButton 标志。
  • 检查界面,使按钮符合 Android 设计指南,以保持一致性。

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

官方原文摘录

1. Audit your code: Identify if your app targets Android 17+ and uses precise location for one-time tasks. 2. Implement the flag: If the button is required, utilize the onlyForLocationButton flag in your manifest. 3. Review the UI: Ensure your button follows Android design guidelines for consistency.

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

变更历史

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

首次出现: 2026-10-26

开发者关于此条款的案例

暂无案例。

分享你的案例