ionic 5 disable back button code example Example: ionic how to block back button this.platform.backButton.subscribe(() => { // do something here });