Location not working on iOS simulator

Please provide the following:

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

I just updated to expo v36 and I get this error when trying to call Location.getCurrentPositionAsync
Cannot obtain last known location: Error Domain=kCLErrorDomain Code=0 “(null)”

I’m running on a simulator and I did accept the location permissions

Here’s a snack with the issue

It works fine on the device

Hey @tafelito,

Can you make sure you’ve enabled location services on the simulator https://docs.expo.io/versions/v36.0.0/sdk/location/#enabling-emulator-location


1 Like

I did have it enabled, but for some reason just by changing the value to something else and back to custom started working again!

Thanks @adamjnav

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