Registering BOOT_COMPLETED receiver in Android 8

前端 未结 2 668
日久生厌
日久生厌 2021-01-11 10:38

We are about to update our App Android API 26. In the documentation about Broadcast receiver it says that

Apps that target Android 8.0 or higher can

相关标签:
2条回答
  • 2021-01-11 10:59

    BOOT_COMPLETED is still accepted.

    https://developer.android.com/guide/components/broadcast-exceptions.html

    No need to change anything. Make sure you test in Android 8.

    0 讨论(0)
  • 2021-01-11 10:59

    ACTION_BOOT_COMPLETED is on the implicit broadcast whitelist, and so you can register for it in the manifest.

    0 讨论(0)
提交回复
热议问题