StoreRules

规则 · 了解前台服务和全屏意图要求 · Android 14 的全屏通知要求

What is a foreground service permission and does it need to be granted by the user before starting a foreground service?

通俗解读

目标为 Android 14 且使用前台服务的应用,必须声明与该具体服务类型相对应的前台服务权限;这些权限在安装时授予,用户无法撤销。

  • 示例:使用「location」前台服务类型需要声明 FOREGROUND_SERVICE_LOCATION 权限。
  • 特定类型的前台服务权限属于普通权限,安装时默认授予。
  • 用户无法撤销这些权限。

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

官方原文摘录

When apps that target Android 14 use a foreground service, developers must declare the appropriate foreground service permission for that specific foreground service type. For example, if your app uses the "location" foreground service type, you will need to declare the FOREGROUNDSERVICELOCATION permission. Foreground …

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

开发者关于此条款的案例

暂无案例。

分享你的案例