Skip to content
This repository was archived by the owner on Feb 21, 2023. It is now read-only.

Commit 316b744

Browse files
committed
Create workmanager_faq.md
1 parent f47c84f commit 316b744

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

android/workmanager_faq.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# WorkManager FAQ
2+
The [WorkManager documentation](https://developer.android.com/reference/androidx/work/WorkManager) does not clearly explain all of the different edge cases that may be encountered. After some testing with this API, the edge cases that were tested are documented here for future reference:
3+
4+
- When the device is turned off and turned on before the one-time scheduled job, does the job complete?
5+
- Yes
6+
- When the device is turned off and misses the one-time scheduled job time, does the job complete (i.e. “catches up”)?
7+
- No
8+
- What happens when exceptions are thrown inside a Worker?
9+
- The job results in a `Failure`. By default, **this exception is not caught by Sentry**.
10+
- If a job crashes, does it crash the foregrounded app?
11+
- No

0 commit comments

Comments
 (0)