Colota - Android GPS Location tracker
fix: flush sync queue when entering geofence pause zone. Refs #269
Max Dietrich1ed6f0fdfc45
diff --git a/apps/mobile/android/app/src/main/java/com/colota/service/LocationForegroundService.kt b/apps/mobile/android/app/src/main/java/com/colota/service/LocationForegroundService.ktindex 5f619c90..61a74bf2 100644--- a/apps/mobile/android/app/src/main/java/com/colota/service/LocationForegroundService.kt+++ b/apps/mobile/android/app/src/main/java/com/colota/service/LocationForegroundService.kt@@ -599,6 +599,9 @@ class LocationForegroundService : Service() {profileManager.clearSpeedBuffer()+ // Flush any queued points so the backend shows the arrival position+ serviceScope?.launch { syncManager.manualFlush() }+AppLogger.d(TAG, "Entered pause zone: ${geofence.name}")}