Hi,
When user enter into my app for the first time, because he is not login with firebase he goes directly to a tabs page (this.rootPage = “login-tabs”).
in login tabs I have 2 tabs (sing-in-page,sign-up-page).
after the user sign in or signup I want the app to reload completely (with splash screen).
and now because he is login, he goes to main tabs (this.rootPage = “main-tabs”).
firebase.auth().onAuthStateChanged(user => {
if (user) {
this.rootPage = "login-tabs"
} else {
this.rootPage = "main-tabs"
}
});
Somebody know the best practice to do it ?
I ready try
navigator.app.loadUrl('localhost:8080', { openExternal:false });
or
this.splashscreen.show();
window.location.reload();
every time when I try something it seems that the main-tabs loaded but it keep show the login-tabs