Fix background location

This commit is contained in:
Sebastien Riviere
2026-03-13 01:46:29 +01:00
parent 471e514981
commit 9913549610
6 changed files with 82 additions and 14 deletions

View File

@@ -22,7 +22,11 @@ defineTask(TASKS.BACKGROUND_LOCATION, async ({ data, error }) => {
return;
}
const { latitude, longitude } = locations[0].coords;
emitUpdatePosition([latitude, longitude]);
try {
emitUpdatePosition([latitude, longitude]);
} catch (e) {
console.log(e);
}
}
});