@bholub1 wrote:
I have an app that requires login, so I set the rootPage to LoginPage. However, I'd like to bypass the login page if the user is already logged in (I'm authenticating against an OAuth service and storing the token data using SqlStorage).
I got it "working" by adding code to the login page to check storage and then setRoot to the HomePage, but when the app starts it still shows the login page for a split second before moving to the "Home" page.
So I thought maybe adding a check at the App level would be better, but I seem to get the same result (flicker of the Login page before showing the Home page).
I ended up here: https://github.com/driftyco/ionic/issues/5543 which led me to here: http://ionicframework.com/docs/v2/components/#navigating_from_root -- but I can't seem to get it to work without the delay.
Any thoughts?
Thanks,
Brian
Posts: 3
Participants: 2