android / android/codelab-android-workmanager
Is WorkManager library supported in direct boot aware mode?
- Dominant language
- Kotlin
- Stars
- 557
- Forks
- 242
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
Research direction
Start with the direct boot documentation linked in the issue and the WorkManager initialization path that produces the reported IllegalStateException. Determine whether direct boot mode is supported and which library version applies; document the conclusion or identify the required repository change, since no source file or test is named.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100