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]”.
Actually, later it turned out it does work - but not like a charm
It has conflict with SwipeBack, so in case a new reader needs this functionality, and also has to support SwipeBack, a workaround is needed.
The issue: