Commit graph

15 commits

Author SHA1 Message Date
c781fc5079
fix: improve button layout and event log readability 2026-04-30 15:56:16 +07:00
02040081ce
feat: revamp UI with dark terminal aesthetic 2026-04-30 15:46:53 +07:00
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
4eade880b1
fix: query tracking state on startup to sync with service 2026-04-30 13:13:18 +07:00
4365084625
fix: implement updateTrackingConfig and getStatus in BridgeModule 2026-04-30 13:09:57 +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
85249acc84
feat: update main.dart with app initialization 2026-04-30 11:25:34 +07:00
01cf56f998
feat: add StatusScreen for event log viewing 2026-04-30 11:22:13 +07:00
4e2afa3428
feat: add SettingsScreen for configuration 2026-04-30 11:20:50 +07:00
db08fc8d5c
feat: add MainScreen with tracking toggle and status display 2026-04-30 11:18:39 +07:00
45da511f87
feat: add platform channel bridge between Flutter and Android 2026-04-30 11:14:27 +07:00
d1b7948723
feat: add Preferences for settings persistence 2026-04-30 11:12:30 +07:00