Location: "Location provider is unavailable. Make sure that location services are enabled."
Problem
๐ Bug Report Environment Expo CLI 2.19.5 environment info: System: OS: macOS High Sierra 10.13.6 Shell: 3.2.57 - /bin/bash Binaries: Node: 10.15.1 - /usr/local/bin/node Yarn: 1.13.0 - /usr/local/bin/yarn npm: 6.4.1 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman IDEs: Android Studio: 3.1 AI-173.4670197 Xcode: 10.1/10B61 - /usr/bin/xcodebuild npmPackages: expo: ^34.0.1 => 34.0.3 react: 16.8.3 => 16.8.3 react-native: https://github.com/expo/react-native/archive/sdk-34.0.0.tar.gz => 0.59.8 react-navigation: ^3.11.1 => 3.11.1 APP TARGET : ANDROID DEVICE (USING EXPO CLIENT APP). Using a VIVO Device running Android 6.0, the device has a SIM and is network enabled. Steps to Reproduce let { status } = await Permissions.askAsync(Permissions.LOCATION); if (status !== 'granted') { this.setState({ errorMessage: 'Permission to access location was denied', }); console.log("no permission"); } else{ console.log("working on location"); let location = await Location.getCurrentPositionAsync({enableHighAccuracy:false}); console.log('latitude is ' + location.coords.latitude.toString()) console.log('longitude is ' + location.coords.longitude.toString()) } Expected Behavior The location services should provide me with GPS coordinates. Actual Behav
Error Output
error is produced :
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Location: "Location provider is unavailable. Make sure that location services are enabled."
Please, try call `getPositionAsync` with `enableHighAccuracy` set to true and tell me if that works.
Trust Score
5 verifications
- 1
Please, try call `getPositionAsync` with `enableHighAccuracy` set to true and te
Please, try call `getPositionAsync` with `enableHighAccuracy` set to true and tell me if that works.
Validation
Resolved in expo/expo GitHub issue #5504. Community reactions: 12 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep