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