Ionic 4 Delete Page from History (Android)
问题 Android devices has back button on menu toolbar. I want to disable the possibility when i login to my app and click on that back button to route on login page. I want if user click on back button after login then i close the app. Here is my initial code for routing below. if (token) { this.router.navigate(['/main-tabs/tabs/dashboard']) } else { this.router.navigate(['/login']).then(); } 回答1: I've tried many other answers but none of them really works for me. But this one works : To disallow