so `WorkManager` Foreground Workers can run for &g...
# android
a
so
WorkManager
Foreground Workers can run for > 10 minutes, but the documentation mentions that Expedited jobs (which also present a foreground notification) should only run for "a few minutes". Does anyone know if this is enforced? Is there a 3 minute or similar time limit on Expedited Workers? I would like to expedite a long running Worker as it's initiated in response to a user interaction, but the Worker may have to run for > 10 minutes
😶 3
j
When you try to create a periodic worker with less duration than 10 minutes, work manager does not allow in android studio. Red bulb appears. What you can do? You can create a single worker. When it will be completed, you can create again this single worker of workManager after some time such as 2-3 minutes. In this way, you can bypass it.