@lakaroth said in Instant app exit! Need confirmation how to do?:
document.addEventListener(“backbutton”, function (e) {
e.preventDefault();
navigator.notification.confirm(“Are you sure want to exit from App?”, onConfirmExit, “Confirmation”, “Yes,No”);
}, false);
Try:
$(document).on(“click”, “#backbutton”, function (e) {
navigator.notification.confirm(“Are you sure want to exit from App?”, onConfirmExit, “Confirmation”, “Yes,No”);
}, false);