Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Background Location Update using Flutter and Dart

Tags:

flutter

dart

Is There a way to Get Location Update of user in a flutter app (for both android and ios) while the app is not running or is in the background (on stop state). Can this be done using dart code only? or if there is any other way to have this functionality?

like image 647
Amit Chauhan Avatar asked May 07 '19 19:05

Amit Chauhan


1 Answers

There are a few pub libraries you could use.

carp_background_location is my favorite. It is build on top of background_locator library. It is very easy to use, and seems to work fine on android. It claims to work on ios but i have not tested that.

It also shows a notification, and you can set the text for that.

like image 97
Joran Avatar answered Oct 17 '22 21:10

Joran