Commit graph

6 commits

Author SHA1 Message Date
d673f01a2d
chore: format code 2026-04-30 15:39:19 +07:00
bbd51d1c35
fix: critical bugs preventing location reporting to server
- Send config to native before starting tracking (SharedPreferences sync)
- Register ConnectivityReceiver for network state detection
- Fix Settings number fields using TextEditingControllers
- Cancel stream subscription on widget dispose (memory leak)
- Replace WorkManager with AlarmManager for heartbeat
- Add log cleanup for logs older than 24 hours
- Change HTTP method from GET to POST

These fixes resolve the 'device always offline' issue where:
1. Config was not being sent to native service
2. ConnectivityReceiver was never registered
3. Settings number fields were not saving
4. Heartbeat never fired due to WorkManager process isolation
5. Server expected POST not GET
2026-04-30 15:38:24 +07:00
cd34c8bbf3
feat: add send location button to force immediate report 2026-04-30 13:23:07 +07:00
cb8c1ab43b
fix: use debugPrint instead of print, ignore deprecated value param 2026-04-30 11:55:52 +07:00
07bae466cf
fix: address analysis issues - remove unused import, fix deprecated APIs, update test 2026-04-30 11:40:56 +07:00
4e2afa3428
feat: add SettingsScreen for configuration 2026-04-30 11:20:50 +07:00