Add heartbeat extra (fix #26)

This commit is contained in:
Anton Tananaev 2025-06-14 15:02:29 -07:00
parent 3333049477
commit 69b6d1c6e7

View file

@ -35,7 +35,7 @@ class GeolocationService {
} }
static Future<void> onHeartbeat(bg.HeartbeatEvent event) async { static Future<void> onHeartbeat(bg.HeartbeatEvent event) async {
await bg.BackgroundGeolocation.getCurrentPosition(samples: 1, persist: true); await bg.BackgroundGeolocation.getCurrentPosition(samples: 1, persist: true, extras: {'heartbeat': true});
} }
} }