Add heartbeat extra (fix #26)
This commit is contained in:
parent
3333049477
commit
69b6d1c6e7
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ class GeolocationService {
|
|||
}
|
||||
|
||||
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});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue