sadegh
sadegh

Reputation: 197

how to keep flutter app run in background?

Hi I want create app with flutter for android and I have some problem. I want my app work in background and even when close. and my app has some text for report that change in so everyday on specific time or in period of time for example each 10 min. I want even when my app in background or is close the app keep working and show the notification to user. how to do this? please help me.

Upvotes: 0

Views: 977

Answers (2)

Faiz
Faiz

Reputation: 7000

use package flutter_background_service for running code in background

Upvotes: 0

Hamza Malik
Hamza Malik

Reputation: 86

You can use flutter_background_service from pub.dev or simply follow this article Background Service for Flutter

Upvotes: 1

Related Questions