In Mobile how to exit the app using the back button of device with the Confrimation
Question

Hi eveyone 

i need to impemment the one feature where use want to exitt app using the back button with confrmation messgae 

how i can do this in mobile 

Champion

Hi Soni, 

Please check this - Thread.


For  confirmation

You can write JS like below at Javascript Node:


var r = confirm("Are you sure!");

if (r == true) { 

    navigator.app.exitApp();

}


Hope this help

Rahul

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.