can you share the source code? didi you used DB or ionic storage looks like you used DB
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
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.
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.
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?