flutter_geofence icon indicating copy to clipboard operation
flutter_geofence copied to clipboard

User location is not updated at background

Open aTeamSolace opened this issue 4 years ago • 3 comments

any extra code wee need to add this method?? because when i was create a separate method then user location is not get and when download your app then user location getting but not updated ??? and i was set geolocation region but when i go in that region i didnt received any notification also leave region then still not getting any notification

aTeamSolace avatar May 19 '20 08:05 aTeamSolace

Yes, When the application is in the background or in kill mode then app will not update it's current locaiton.

devalp-pro avatar May 20 '20 19:05 devalp-pro

I was able to update geofence in background using location package.

import 'package:location/location.dart';

and then,

Location().enableBackgroundMode(enable: true);

hope to see this feature intergrated internally.

hucancode avatar Apr 12 '21 05:04 hucancode

How exactly did you achieve it? Can you share a code snippet?

aadesh1993 avatar May 21 '21 17:05 aadesh1993