I have some code attached to an exit button:
prenavigator.notification.confirm(
'Press Exit to terminate application', // message
function(buttonindex){if (buttonindex === 1) {navigator.app.exitApp();}}, // callback to invoke with index of button pressed
'Exit Application', // title
['Exit','Continue'] // buttonLabels
);/pre
I have used this code in previous apps, but it doesn't seem to do anything, I don't get the cordova confirm notification.
I tried it through the android appery tester app and it works ok there, but not as a standalone app