flutter-geolocator
flutter-geolocator copied to clipboard
Fix "location services disabled" error on Wear OS
getCurrentPosition() was returning "location services disabled" error on Wear OS even though location was actually enabled. Handling this error skips the location setting check and starts fetching the location.
List at least one fixed issue. Fixes #1197 for getCurrentPosition(). I haven't tested Wear OS support for all APIs.
Pre-launch Checklist
- [X] I made sure the project builds.
- [X] I read the Contributor Guide and followed the process outlined there for submitting PRs.
- [X] I updated
pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is does not need version changes. - [X] I updated
CHANGELOG.mdto add a description of the change. - [X] I updated/added relevant documentation (doc comments with
///). - [X] I rebased onto
main. - [X] I added new tests to check the change I am making, or this PR does not need tests.
- [X] I made sure all existing and new tests are passing.
- [X] I ran
dart format .and committed any changes. - [X] I ran
flutter analyzeand fixed any errors.