Example A: ask “Exit app?” on the home screen
ShowExitConfirmation
True
ExitConfirmationText
"Do you want to exit?"
Result: pressing back shows a confirmation. Exit closes the app and Cancel keeps it open.
Example B: back closes a popup instead of leaving the screen
Example C: a screen that needs nothing specialDon’t add the block. Back works as usual.
Example D: turn custom back off for a while
Enabled
False
The back button only works in a new native build. In the browser, it does nothing; that is expected.
cordova-plugin-dialogs
See the BackButtonDemo app for a working example of every feature.
.
Full documentation: https://github.com/gourav-grv/os-android-back-button