From 69b6d1c6e7ce2d98fba8937817dcd77727891ebf Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 14 Jun 2025 15:02:29 -0700 Subject: [PATCH] Add heartbeat extra (fix #26) --- lib/geolocation_service.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}); } }