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

Update examples with sending to the isolate #218

Closed arisAlexis closed 1 month ago

arisAlexis commented 4 months ago

There are currently not examples of how to run a function when the FirstTaskHandler receives a message from the outside, only to send from it to the main.

For now I am thinking of a timer that checks the getData and then deletes it but it is very suboptimal.