Enterprise Location Tracker Plugin
Plugin Author & Lead Mobile Engineer
Case Study Narrative
The business context and technical outcomes of this project.
Workforce and delivery apps suffer 40%+ tracking loss due to OEM battery management killing background services, while indoor GPS drift and Fake GPS apps lead to fraudulent mileage reimbursement claims.
Engineering an Android background location engine that never drops a shift across low-memory kills or device reboots while maintaining sub-meter accuracy and fraud protection.
Architected a native Kotlin foreground service with persistent state preservation, an on-device Kalman filter, Room SQLite daily rollover storage, and EventChannels for typed status and security alerts.
Delivered a rock-solid plugin with 100% reboot/kill survival, zero phantom drift, compliance-grade mock detection, and a 39-test automated test suite.
Native Kotlin Location Tracking System Flow
Hover over any system node in the diagram below to inspect its technical details and implementation responsibility.
Flutter UI
MethodChannel
Foreground Service
Mock & GPS Guard
Kalman Filter
Room Database
EventChannel
Flutter UI
Renders live trip progress, movement state, and security alerts.
MethodChannel
Sends config parameters and invokes commands via typed runner.
Foreground Service
Persists active shifts across OS kills and device reboots (START_STICKY).
Mock & GPS Guard
Blocks fake GPS apps in Release builds and detects mid-shift provider shutdowns.
Kalman Filter
Eliminates stationary coordinate jitter and indoor drift on-device.
Room Database
Stores daily odometer history with automatic midnight rollover & 7-day prune.
EventChannel
Streams live coordinates, movement states, and typed security alerts to Flutter.
Hover over any system component block to inspect the engineering implementation details.
Key Engineering Challenges
A detailed breakdown of low-level infrastructure and systems problems successfully solved during implementation.
The Challenge
Problem Statement
Background tracking on Android must withstand aggressive OEM battery managers (Samsung OneUI, Xiaomi HyperOS), Doze deep idle mode, and mid-shift permission revocations.
Research & Decisions
Typed Platform Channels
Centralized _invoke<T>() runner mapping native platform errors to strongly-typed Dart exceptions.
Typed Platform Channels
Centralized _invoke<T>() runner mapping native platform errors to strongly-typed Dart exceptions.
Robolectric JVM Test Harness
Full SQLite in-memory test harness executing 24 native Android assertions in under 4 seconds.
Robolectric JVM Test Harness
Full SQLite in-memory test harness executing 24 native Android assertions in under 4 seconds.
Features & Implementation
Technologies Used
Project Interface Flow
Visual layout mapping the primary interface checkpoints and telemetry data pipelines of the application.



