Faheem Khan
Faheem Khan

Reputation: 51

How to get real time update in a Flutter app when the app is in background?

In my flutter app, I need to update the location of the mobile user every 10 seconds, even if the app is not active (terminated).

How do I achieve this?

I have gone through background_fetch and workmanager

Both have bugs and don't fulfill my need as they follow OS criteria of getting executed periodically every 15 minutes minimum.

Upvotes: 1

Views: 1016

Answers (1)

Itamar Garcia
Itamar Garcia

Reputation: 906

Right now in flutter is not easy to do that. what i did was write code in android and comunicate con dart code using methodChannel, here is the post that i followed: How to create a service in Flutter to make an app to run always in background?

Upvotes: 1

Related Questions