public static void GoToCambiarContrasena(ResetPasswordInfo data) { DependencyService.Get <IResetPassword>().CleanDataFromUriCall(); var app = Current as App; app.MainPage = new NavigationPage(new CreaContraseñaPage(data)) { BarBackgroundColor = (Color)App.Current.Resources["AzulColor"] }; }
private static bool CheckCambiarContrasena() { ResetPasswordInfo data = DependencyService.Get <IResetPassword>().GetDataFromUriCall(); if (!String.IsNullOrEmpty(data.userId)) { Console.WriteLine("check cambioar contraseña_userid=" + data.userId); return(true); } return(false); }
public CreaContraseñaPage(ResetPasswordInfo _info) { InitializeComponent(); Loading(false); info = _info; tapTerminar = new TapGestureRecognizer(); tapTerminar.Tapped += TapTerminar_Tapped; stkTerminar.GestureRecognizers.Add(tapTerminar); }
protected override void OnResume() { GetConfig(); if (CheckCambiarContrasena()) { ResetPasswordInfo data = DependencyService.Get <IResetPassword>().GetDataFromUriCall(); GoToCambiarContrasena(data); } // Handle when your app resumes }
public App() { InitializeComponent(); //TODO: borrar en deploy /solo para hacer pruebas //GeneralSetting.FirstTime = String.Empty; var r = GeneralSetting.FirstTime; GetConfig(); //var email = "*****@*****.**"; //var idd_token = await DependencyService.Get<IPushNotification>().RegisterDevice(email); //Console.WriteLine("token_idd_registrado__" + idd_token +"----"); // RegistrarPushToken(); if (CheckCambiarContrasena()) { ResetPasswordInfo data = DependencyService.Get <IResetPassword>().GetDataFromUriCall(); GoToCambiarContrasena(data); } else { if (string.IsNullOrEmpty(r)) { MainPage = new NavigationPage(new RegistroPage()) { BarBackgroundColor = (Color)App.Current.Resources["AzulColor"] }; GeneralSetting.FirstTime = "ok"; } else { MainPage = new InitPage(); } } //CurrentVersion = Context.PackageManager.GetPackageInfo(Context.PackageName, 0).VersionName; //MainPage = new DatosPage(); }