Pretty simple Ionic app. LoginPage directs to TabsPage. But on Android, the hardware back button acts like a web back button and can take the logged in user back to the Login screen.
Is there a way to avoid/prevent this?
Pretty simple Ionic app. LoginPage directs to TabsPage. But on Android, the hardware back button acts like a web back button and can take the logged in user back to the Login screen.
Is there a way to avoid/prevent this?
Assuming you’re using the Angular router, have you looked into the replaceUrl
option in NavigationExtras?
I was using relativeTo: this.route, skipLocationChange: true
which wasn’t working but replaceUrl: true
does.