Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PrasannaS-Zebra opened this issue Jan 9, 2023 · 0 comments
Open

Comments

@PrasannaS-Zebra
Copy link

PrasannaS-Zebra commented Jan 9, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant