I am overriding my device back button per the documentation that I attach event listener to backbutton
with argument of false
after the devicerea
Try using the normal way of using cordova events.
// device APIs are available
//
function onDeviceReady() {
// Register the event listener
document.addEventListener("backbutton", onBackKeyDown, false);
}
// Handle the back button
//
function onBackKeyDown() {
//Add your back button implementation.
}
official documentation here
Modified code
Tigo SMART Installation
Few reference links here and here