I am building an application where i need to remove the initial page from the navigation stack. When started the user is presented with a login screen which I want to have removed from the stack after the user have been successfully logged in. I have tried several approaches:
Both of these work ok on ios but not on android. Whenever i rotate the phone or switches out of the app and back in again the loginpage will always be shown.
I cannot figure out if this is a bug or if I am doing something wrong here. Do any of you know an approach to working around this problem? It literally makes me crazy!
Thank you very much in advance and have a great day.