示例#1
0
        private async void InitUserLocation()
        {
            try
            {
                location = await GeolocationManager.GetLocationAsync();

                Init();
            }
            catch (Exception ex)
            {
                Log.Warning("GPS EXCEPTION", ex.Message);
            }
        }
示例#2
0
        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);
            }
        }