can you share the source code? didi you used DB or ionic storage looks like you used DB
Sourcecode is already here: Ionic 4 Skip Start-Page when user is logged in
Tnq ive done with my project and running quiete good.
can you share your code please?
sorry dude the code is not uploading,you better see this page https://www.freakyjolly.com/ionic-4-create-simple-login-and-prevent-page-access-using-angular-guards/ i’ve followed this .
Thanks…I"ll try it and feed you back here.
I’ve tried it but still showing the login page for like a second before switching, which I don’t consider perfect.
this.navController.navigateRoot instead of router in you ts file
Take a look at my router. The first page to load is not the login page, it should be your homepage or whatever.
I’'ve tried all still not working has desired, shows the order page briefly before switching.
Thanks @o8thug …your solution worked, I used navController then setRoot.
But I had to resolve to animated splash screen because it still briefly shows the login page before navigating to the dashboard…Thanks
Do you use an AuthGuard?
I used AuthGuard then…but still couldnt get desired result.
share your code here @Ojhey