Ok, so I'm trying to use CoreLocation in a mono mac app. After a few attempts at getting it to work with no luck (the .UpdatedLocation
event is never raised), I grabbed this sample from the MonoMac repository.
The configuration/use of the CLLocationManager seems pretty straightforward:
locationManager = new CLLocationManager();
locationManager.UpdatedLocation += HandleLocationManagerUpdatedLocation;
locationManager.Failed += HandleLocationManagerFailed;
locationManager.StartUpdatingLocation();
Unfortunately, it seems the results were the same there as the location is never shown:
So is there some sort of setting on the mac that I need to enable for this to work? CLLocationManager.LocationServicesEnabled
is returning true when I check it at runtime.