private async void Confirm() { try { await NavigationHelper.ShowLoading(); var user = await CacheAccess.GetSecure <User>(CacheKeys.USER_KEY); await _userAppService.Logout(user.UsuarioId.ToString()); await CacheAccess.DeleteAll(); await _navigationService.NavigateAsync(NavigationSettings.AbsoluteLogin); try { Analytics.TrackEvent(InsightsTypeEvents.ActionView, new Dictionary <string, string> { { InsightsPagesNames.LoginPage, InsightsActionNames.Logout } }); } catch { } } catch (Exception ex) { _userDialogs.Toast(ex.Message); await NavigationHelper.PopLoading(); } finally { await NavigationHelper.PopLoading(); } }