Closed MrFuFuFu closed 5 years ago
This error tends to happen in the simulator and it means you have not set the simulator to provide a location.
Cool, Thanks mate.
Thanks 👍🏻
If you found my work helpful, please consider supporting its development.
Hi there,
When I tried to get current location in my Simulator. Surely, it will gets wrong if Simulator doesn't have current location. So it will jump into this function and then runs into the
if
condition. I see the note. Could you explain that// Apple docs say you should just ignore this error
? Or could you provide where the Apple docs says that? I didn't find it in CLError.locationUnknown.Because the Promise didn't get rejected if the code run into this
if
condition in my Simulator.Many thanks.
By the way, I chose the location as
City Run
orCity Bicycle Ride
orFreeway Drive
in Simulator's Debug