Error: Location provider is unavailable. Make sure that location services are enabled.

  1. SDK Version: 42.0.1
  2. Platforms: Android

Initially i was able to get location by using Location.getCurrentPositionAsync() method, but now this method keeps throwing error: Location provider is unavailable. Make sure that location services are enabled.

Currently it is working with Location.getLastKnownPositionAsync() method, but getCurrentPositionAsync() keeps throwing error despite of all the LocationProvider variables are giving true response.

LocationProviderStatus: {“backgroundModeEnabled”: true, “gpsAvailable”: true, “locationServicesEnabled”: true, “networkAvailable”: true, “passiveAvailable”: true}

Hi. This problem was caused by a change that Google made to Google Play Services. The Expo team is working on it:

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.