Custom filtering logic

This commit is contained in:
Anton Tananaev 2025-06-16 22:43:21 -07:00
parent 00599d7b1e
commit 5226e4dd90
6 changed files with 136 additions and 12 deletions

View file

@ -119,8 +119,7 @@ class _MainScreenState extends State<MainScreen> {
FilledButton.tonal(
onPressed: () async {
try {
await bg.BackgroundGeolocation.getCurrentPosition(samples: 1, persist: true);
await bg.BackgroundGeolocation.sync();
await bg.BackgroundGeolocation.getCurrentPosition(samples: 1, persist: true, extras: {'manual': true});
} catch (error) {
developer.log('Failed to fetch location', error: error);
}