I would like to be able to cancel the backButtonPress event, but I don’t want to change its core behavior.
So, when the user is on specific pages, where poping the page would make the user lose its work, I would like to show the user a confirm message, like “if you leave now, all your work will be lost. [Leave] [Cancel]”.
I’ve found no solution for this here: registerBackButtonAction default action
How could I do this in ionic 3?