Skip to content

can someone explain about the foreground feature? #361

Discussion options

You must be logged in to vote

Enabling foreground is a technical thing on Android, where - if set - the WorkManager (the service that schedules background tasks) will start a task within an Android foreground service instead of a background service. This has one advantage and several disadvantages, so should not generally be used. The advantage (and the only reason really to use it) is that it removes the 9 minute time limit on task completion, so if you have really big downloads or a very poor network and the task is not pausable, then you may consider activating it (this is rare). Android doesn't like you running foreground services, so the disadvantages are:

  • Resource Consumption: Foreground services have a higher …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Prince-of-death
Comment options

Answer selected by 781flyingdutchman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants