How to make background service in flutter desktop?

840 Views Asked by At

I'm working on a timer application when it closes it keeps running in the background. How to make a background service in flutter desktop??

I've been looking for the library on the pub dev but so far haven't been able to find it. Does anyone know how to create a background service on a flutter native desktop?

1

There are 1 best solutions below

1
Lior Strugach On

Check out the WorkManager plugin, it lets you run process in the background even if the app is not the main focus on not in current view.

Link: https://pub.dev/packages/workmanager