Fix "location services disabled" error on Wear OS#1689
Open
muratsevim wants to merge 2 commits intoBaseflow:mainfrom
Open
Fix "location services disabled" error on Wear OS#1689muratsevim wants to merge 2 commits intoBaseflow:mainfrom
muratsevim wants to merge 2 commits intoBaseflow:mainfrom
Conversation
|
When I install this commit using the following dependency block: I still receive an error when running on the Android Studio Emulator: I checked the following:
Can you tell me how you got it to work on your side? |
Author
|
I tested the change on a real Wear OS watch. So don't know if it works on the emulator. Also, Geolocator.isLocationServiceEnabled() still returns false, so I don't use it in my code. This is how I get the location: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is does not need version changes.CHANGELOG.mdto add a description of the change.///).main.dart format .and committed any changes.flutter analyzeand fixed any errors.