Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to run a Flutter app through background on macOS or Windows desktop?

I want to make a clipboard application for macOS operating system. For this, the application I wrote with Flutter should continue to work in the background without dying. I've looked at a few resources on this subject. I also reviewed Flutter's own documentation at this link. Background processes can be run on Android and iOS operating systems using isolates. But I couldn't find any information on ways to do this on macOS, Windows, and other desktop operating systems. Is there a way to this? Thank you!

like image 364
Seyit Gokce Avatar asked Sep 11 '25 18:09

Seyit Gokce


1 Answers

I learned that the only way to do this is to work with the native code of the platform. For this, it is necessary to define the Flutter application as a service to the manifest file and set this service to be executed in the background from the native code. See Platform Channels for more.

like image 127
Seyit Gokce Avatar answered Sep 14 '25 10:09

Seyit Gokce