Flutter info (flutter doctor):
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] VS Code (version 1.90.2)
[✓] Connected device (6 available)
[✓] Network resources
When moving in the background, data is sent to the backend. After running the application I can get these geolocations using BackgroundGeolocation.locations getter
Actual Behavior
Once a geolocation is successfully sent, it is immediately deleted from the database. BackgroundGeolocation.locations returns an empty array
Steps to Reproduce
Run app
Move the app to background
Change a location
Open the app and call BackgroundGeolocation.locations
Your Environment
flutter doctor
): Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-arm64, locale en-US) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.4) [✓] Chrome - develop for the web [✓] Android Studio (version 2023.1) [✓] VS Code (version 1.90.2) [✓] Connected device (6 available) [✓] Network resources• No issues found!
Expected Behavior
When moving in the background, data is sent to the backend. After running the application I can get these geolocations using BackgroundGeolocation.locations getter
Actual Behavior
Once a geolocation is successfully sent, it is immediately deleted from the database. BackgroundGeolocation.locations returns an empty array
Steps to Reproduce
Context
Debug logs
Logs
``` [c.t.l.d.s.SQLiteLocationDAO persist] I/TSLocationManager(18628): ✅ INSERT: c356d985-1625-4ce4-93e6-8f949c9196ba I/TSLocationManager(18628): [c.t.l.http.HttpService flush] I/TSLocationManager(18628): ╔═════════════════════════════════════════════ I/TSLocationManager(18628): ║ HTTP Service (count: 1) I/TSLocationManager(18628): ╠═════════════════════════════════════════════ I/TSLocationManager(18628): [c.t.l.u.BackgroundTaskManager$Task start] ⏳ startBackgroundTask: 5 D/TSLocationManager(18628): [c.t.l.d.s.SQLiteLocationDAO first] D/TSLocationManager(18628): ✅ Locked 1 records I/TSLocationManager(18628): [c.t.l.http.HttpService a] I/TSLocationManager(18628): 🔵 HTTP POST: c356d985-1625-4ce4-93e6-8f949c9196ba I/TSLocationManager(18628): [c.t.l.http.HttpService$f onResponse] I/TSLocationManager(18628): 🔵 Response: 201 D/TSLocationManager(18628): [c.t.l.d.s.SQLiteLocationDAO destroy] D/TSLocationManager(18628): ✅ DESTROY: c356d985-1625-4ce4-93e6-8f949c9196ba ```