gps_time_plugin 0.0.1
gps_time_plugin: ^0.0.1 copied to clipboard
A Flutter plugin that provides accurate GPS-synced time on Android and iOS. Extracts trusted time directly from GPS location fixes, helping avoid reliance on potentially manipulated or drifted device clocks.
0.0.1 #
- Initial release.
- Android: Extracts GPS-synced time from
LocationManagerusingelapsedRealtimeNanosoffset calculation for high accuracy. - Android: Emits trusted time, GPS accuracy, and status messages via an
EventChannelstream. - iOS: Extracts location timestamp from
CLLocationManagerand streams it via anEventChannel. - Dart: Exposes
GpsTimeStatemodel withtrustedTime,accuracy,ageSeconds,deviceTime, andstatusMessage. - Supports
startListening()andstopListening()lifecycle methods.