Take a look at these issues on GitHub., there is a discussion about gps, which does not work properly if there is no clear view to the sky (satellite)
https://stackoverflow.com/a/77103201/18451446
Baseflow/flutter-geolocator#1312
Baseflow/flutter-geolocator#1312 (comment)
Baseflow/flutter-geolocator#1312 (comment)
for ios problems:
https://stackoverflow.com/questions/67870103/cant-retrieve-location-in-flutter-by-geolocator
for ios App Tracking Transparency (Rejection from App Store):
deniza/app_tracking_transparency#27
problems with android 9 only (haven't checked on real device), discussion on github about the same problem but with difference package:
Baseflow/flutter-geolocator#1369
problems with android 11 and higher
https://developer.android.com/develop/sensors-and-location/location/permissions/background
about -> SERVICE_STATUS_ERROR in android
for macos problems take a look here:
https://pub.dev/packages/location#macos
A cross-platform GPS tracking application built with Flutter. It allows users to track their location in real time and view their position on a map. The app also supports background location tracking (Android and iOs).
- Real-time GPS tracking
- Background tracking support
- Integrated map view using
flutter_map - Cross-platform support
- Built with the
locationpackage - Solved false "jump" location issue by filtering inaccurate or unrealistic coordinates
| Platform | Status |
|---|---|
| ✅ Android | Implemented |
| ✅ iOS | Implemented |
| ✅ macOS | Implemented |
| ✅ Web | Implemented |
| 🚫 Windows | Not implemented yet |
| 🚫 Linux | Not implemented yet |
A minimal implementation of flutter_map allows users to see their current location on the map.
Location tracking continues to work even when the app is in the background (Android and iOS).