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

Issue

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?

Solution

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

Answered By – Advait

Answer Checked By – Clifford M. (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *