Accessing location in the foreground
通俗解读
应用应尽可能在前台而非后台访问位置,并且只请求所需的最小位置权限范围;前台服务的位置访问仅在部分情况下、且须满足条件时才获得批准。
- 前台访问是指应用打开并可见时的访问;用户关闭应用或返回主屏幕后的访问属于后台访问。
- 前台服务(FGS)位置访问须经审核,并且必须作为应用内用户主动发起操作的延续而启动。
- 应用完成该用户主动操作的预期用途后,必须立即终止FGS的使用。
- 如果FGS位置使用等同于ACCESS_BACKGROUND_LOCATION(或以其他方式在后台使用位置),则该应用须遵守后台位置权限要求。
- 应用应请求最小范围,例如使用前台权限而非后台权限,或在一次性或交易性请求中使用位置按钮;用户应能合理预期该功能需要此级别的位置。
官方原文摘录
Whenever possible, aim to access the location in the foreground rather than the background. What’s the difference? Access to the location in the foreground happens while an app is open and visible to the user. If the access happens after a user closes the app or uses the home button to return to their main screen, …
阅读官方全文 ↗ 在 StoreRules 规则库中打开 询问你的应用是否合规
开发者关于此条款的案例
暂无案例。