Dev-hwang / flutter_foreground_task

This plugin is used to implement a foreground service on the Android platform.
https://pub.dev/packages/flutter_foreground_task
MIT License
140 stars 105 forks source link

Question: What is the use case for WithForegroundTask? #213

Closed Flajt closed 1 month ago

Flajt commented 5 months ago

I'm a bit clueless about the use case for the WithForegroundTask widget is? From looking at it, it should prevent popping the scaffold it is wrapping?

For reasons I don't know it's currently only preventing people from going a page back, even if the service is not running. But you can still close the app without problem (using the regular methods: e.g. minimizing it and then either just closing it via the regular OS options (e.g. swiping up and closing the app for good)).

So I might miss something, but there seems to be no value in the widget?