Please I would like the app to minimize if the android back navigation is taped. I do not know how do I achieve this? Thanks for your response in advance.
Thanks for your reply.
I made my code work, the error was with panel close by back button.
Commented that and works fine.
The code check:
if you are on home page, if true create a toast asking you want to close app. If false =>
check for a modal open, if true: close, if false =>
check for an expandable card open, if true: close, if false =>
go back to previous page.
function onBackKeyDown(e) {
if (app.view.main.router.currentRoute.name == “inicio” || app.view.main.history.l…
There is a code i use.
But just to close app use navigator.app.exitApp();
1 Like