Ionic 4 Skip Start-Page when user is logged in

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.

try thisthis.navController.navigateRoot instead of router in you ts file

2 Likes

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

Hi

i am using the ionic4 app its navigated the main page in baground but its still splash is displaying ho can i use this i am using with capacitor

itā€™s still doesnā€™t work !

you mean for the authGaurd or splashscreen method?

You could use splashscreen to hide the flick and redirect to the desired page.

please, can you provide an example to more clarification?