Skip to content

Is WorkManager library supported in direct boot aware mode? #312

@PrasannaS-Zebra

Description

@PrasannaS-Zebra

Hi Team,
Is Work Manager library supported in direct boot aware mode? If it supported please let us know from which version?
Here is the link about direct boot https://developer.android.com/training/articles/direct-boot
We are getting below error when tried to start from direct boot mode.

java.lang.IllegalStateException: Cannot initialize WorkManager in direct boot mode
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6809)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2135)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7944)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:942)
Caused by: java.lang.IllegalStateException: Cannot initialize WorkManager in direct boot mode

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions