Harsh barvaliya
Harsh barvaliya

Reputation: 33

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

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?

Upvotes: 1

Views: 1877

Answers (1)

Advait
Advait

Reputation: 599

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

Upvotes: 1

Related Questions