private async void InitUserLocation() { try { location = await GeolocationManager.GetLocationAsync(); Init(); } catch (Exception ex) { Log.Warning("GPS EXCEPTION", ex.Message); } }
protected async void InitUserLocation() { try { location = await GeolocationManager.GetLocationAsync(); if (location != null) { InitUserCoordinates(); } } catch (Exception ex) { await PopupNavigation.Instance.PushAsync(new MessageBox(ex.StackTrace, MessageType.Regular, this), true); } }