Location.getCurrentPositionAsync fails although the location service is enabled

Please provide the following:

  1. SDK Version: 36
  2. Platforms(Android/iOS/web/all): Android

Location.getProviderStatusAsync returns the following object:
{
“backgroundModeEnabled”: true,
“gpsAvailable”: true,
“locationServicesEnabled”: true,
“networkAvailable”: true,
“passiveAvailable”: true,
}

But Location.getCurrentPositionAsync right after returns the following error:
Error: Location provider is unavailable. Make sure that location services are enabled.

How do I get the location service to work with Expo on Android (the API calls work fine on iOS)?

Thank you.
Hemant

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