Xamarin.Essentials Geolocation not working in iOS simulator?

Stesvis 1,041 Reputation points

Is it a known behavior that in Xamarin Forms, iOS simulator, this always returns null?

var location = await Geolocation.GetLocationAsync(request, cts.Token);

In Android it returns a value also on the emulator but in iOS i always get NULL. I haven't had a chance to test on a real iOS device yet.


A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 questions
0 comments No comments
{count} votes

Accepted answer
  1. Cole Xia (Shanghai Wicresoft Co,.Ltd.) 6,751 Reputation points


    Welcome to Microsoft Q&A!

    Try to set location in Simulator Settings .


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 additional answers

Sort by: Most helpful