StoreRules

规则 · 满足 Google Play 目标 API 级别要求 · 从低于 Android 11(API 级别 30)迁移

Migrate to Android 8 (API level 26)

通俗解读

以 Android 8.0(API 级别 26)或更高版本为目标平台的 App 会受到后台执行限制、要求配置通知渠道、受到受限的隐式广播和有限的后台位置访问限制,且 ANDROID_ID 的作用域限定为每个 App 签名密钥。

  • 在被禁止的情况下调用 startService() 现在会抛出异常;前台服务必须使用 startForeground() 和 startForegroundService() 启动。
  • Firebase Cloud Messaging 需要 Google Play services SDK 10.2.1 或更高版本;消息传递会受到后台执行限制的约束。
  • 对于在收到消息时进行的后台工作,App 应使用 Firebase Job Dispatcher 或 JobIntentService 来调度作业。
  • 隐式广播受到限制,且后台 App 具有有限的位置访问权限;在装有 Google Play services 的设备上,应使用融合位置提供程序来获取定期更新。
  • 通知必须分配给某个渠道才能显示;应按渠道定义中断属性。
  • ANDROID_ID 的作用域限定为每个 App 签名密钥。

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

官方原文摘录

The following considerations apply to apps targeting Android 8.0 and higher versions of the platform: - Background Execution Limits - The system restricts services for apps not running in the foreground. - startService()) now throws an exception when an app tries to invoke it while startService() is prohibited. - To …

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

开发者关于此条款的案例

暂无案例。

分享你的案例