Skip to content

[KNOWN ISSUE] App does not receive boot completed after restart unless it's unlocked #70

@hossain-khan

Description

@hossain-khan

Q: I got RECEIVE_BOOT_COMPLETED permission in this Android app.
However, when phone restarts, it does not receive it until the phone is unlocked. Why is that?

A:

The RECEIVE_BOOT_COMPLETED permission is declared in your AndroidManifest.xml file, and the BootCompleteReceiver is implemented to handle the BOOT_COMPLETED broadcast. However, modern versions of Android have security measures and restrictions that delay the delivery of certain broadcasts, like BOOT_COMPLETED, until the device is unlocked for the first time after reboot.

To address this issue, consider the following steps:

  1. Ensure that the BootCompleteReceiver is correctly enabled and exported in the manifest.
  2. Check for any device-specific settings or restrictions that might delay the broadcast.
  3. Optionally, explore using the Direct Boot feature to access certain functionalities before the device is unlocked.

For more details, refer to the Android documentation on Direct Boot.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwontfixThis will not be worked on

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions