Home > Software design >  Can I create a background service that always run even if flutter app is not running?
Can I create a background service that always run even if flutter app is not running?

Time:03-30

I want to create a Background service which is always running even if app is not running in background , so that I can manage different features in my flutter , is there any way to do that?

CodePudding user response:

There are several ways of doing this.

  1. You can check out flutter_background_service. It's a new package.
  2. background_fetch is another package that can help you out.
  3. Additionally if you're only planning to execute a task when you get some new information from a remote server, firebase data message can be used too, where you'll run a function upon receiving a data message. link
  • Related