tracelet_web 0.5.0 copy "tracelet_web: ^0.5.0" to clipboard
tracelet_web: ^0.5.0 copied to clipboard

Platformweb

Web implementation of the Tracelet background geolocation plugin.

tracelet_web #

Web implementation of the Tracelet background geolocation plugin.

Important: The web platform does not support background location tracking. The Web Geolocation API only works while the page/tab is in the foreground. Service Workers cannot access navigator.geolocation.

Features #

Feature Status Notes
getCurrentPosition Full Via navigator.geolocation.getCurrentPosition()
start / watchPosition Partial Foreground only. No background tab tracking.
stop / stopWatchPosition Full Via navigator.geolocation.clearWatch()
Geofencing Emulated Distance-based enter/exit/dwell computed in Dart
Persistence Full IndexedDB-backed storage
HTTP Sync Full Via fetch() API
Permissions Partial Via navigator.permissions.query()
Connectivity Full Via navigator.onLine events
Headless / Background No Not possible on web
System Settings No Cannot open OS settings from browser

Usage #

This package is auto-registered by the Flutter plugin system. No additional setup is required — simply add tracelet to your pubspec.yaml and the web implementation will be used when building for web.