Hi.
I'm developing a cross platform app with Xamarin forms which uses gps services to get current location.
Everything seems to run ok on debug, but I've realized that when the device is unplugged from the computer, the app crashes before get the gps coordinates.
Is not a permissions issue, because it crashes with WIFI debug too. So, In general I can say:
App debug with USB: runs ok. App debug with WIFI: crashes. App installed as android apk: crashes.
The line where crashes is:
var position = await locator.GetPositionAsync (timeout: 30000);
So, is only getting the gps position when the device is plugged to the computer.
Any idea what could be happening?