cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Xamarin Forms: iOS is failing in getting Geolocation

uca12496
Newcomer_

I am getting exception in calling location api:

var request = new GeolocationRequest(GeolocationAccuracy.Medium, new TimeSpan(0, 0, 3));
var Loc = await Geolocation.GetLocationAsync(request);

 

bold line is getting exception

Cannot get the method descriptor for the selector 'locationManager_DTX:didUpdateLocations:' on the type 'Xamarin.Essentials.SingleLocationListener', because the selector does not correspond to a method

 

Screen Shot 2023-02-07 at 10.22.07 AM (1).png

3 REPLIES 3

uca12496
Newcomer_

I got answer from support team. We need to configure below variable in config file

"DTXInstrumentGPSLocation" : false 

Thanks

 

This just removes the symptom, so it is only a partial solution for the case where no location capturing is desired.
If accurate location capturing is desired this would need more investigation.

iOS help: https://www.dynatrace.com/support/help/shortlink/ios-hub

our investigations showed that this seems to be a Problem with the Xamarin Simulator on ARM based Macs - the simulator still runs as x86 under rosetta and handling our instrumentation somehow causes troubles there. This does not happen on a device.

iOS help: https://www.dynatrace.com/support/help/shortlink/ios-hub

Featured Posts