Skip to content

Remove page from stack after login #309

@eleddie

Description

@eleddie

I know this has been asked a lot but I don't seem to find a working solution.

My app has a login page and after the user has logged in, the app goes to the main page, so far so good.
I also keep the session alive so that the user doesn't have to log in evey time the app is launched. This is done by saving a token in application settings and choose which page is going to be the default page.

After the user logs into the app, if he/she clicks the back button (I disabled the status bar in iOS to try to avoid this behavior but android still has the back button) the app goes back to the login page. I want to delete that login page from history so when the user taps the back button the application closes. Just like if I did finish() in native android activities

I've read something about backstackVisible but I don't know how to implement it with the router of angular2

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions