Hi, [lets try and write this a second time after GeoNet failed]
We switched over to the NmeaLocationDataSource from our own custom LocationDataSource for collecting from an external iOS device. Been working great and removed a lot of custom code
But we have gotten a system crash when using the NmeaLocationDataSource. It has happened both when making initial connection to the unit and once the user is already collecting GPS data. When it happens while collecting data the user does say they see the LastKnown location indicator (the grey dot). The stack trace shows occurring in OnStartAsync. So not sure if it tries to call this again when the connection is dropped. It seems to me to be an issue with the actual connection between the unit and the iOS device, but possibly is a result of the unit not receiving good data
As much as anything it would be nice to be able to catch the exception so it does not crash the application but I cannot seem to find where one would handle the exception
Thanks
@SomeGISGuy
Stack trace from crash
NSObject.InitializeHandle (System.IntPtr handle, System.String initSelector) /Users/builder/azdo/_work/2/s/xamarin-macios/src/Foundation/NSObject2.cs:609
/Users/builder/azdo/_work/2/s/xamarin-macios/src/build/ios/native/ExternalAccessory/EASession.g.cs:79
Esri.ArcGISRuntime.Location.NmeaLocationDataSource+EAAccessoryStream..ctor (ExternalAccessory.EAAccessory accessory, System.String protocol) [0x0000d] in <fc2ff9f8183b4871b39c22ae8fb2d60c>:0
NmeaLocationDataSource+<>c__DisplayClass33_0.<FromAccessory>b__0 (Esri.ArcGISRuntime.Location.NmeaLocationDataSource d)
NmeaLocationDataSource+CreateStreamNmeaLocationDataSource.OnStartAsync ()
ArcGISException.HandleCoreError (RuntimeCoreNet.GeneratedWrappers.CoreError error, System.Boolean throwException)