diff --git a/lib/geolocation_service.dart b/lib/geolocation_service.dart index d4d5948..8319a96 100644 --- a/lib/geolocation_service.dart +++ b/lib/geolocation_service.dart @@ -35,7 +35,7 @@ class GeolocationService { } static Future onHeartbeat(bg.HeartbeatEvent event) async { - await bg.BackgroundGeolocation.getCurrentPosition(samples: 1, persist: true); + await bg.BackgroundGeolocation.getCurrentPosition(samples: 1, persist: true, extras: {'heartbeat': true}); } }