I have an application built in html5 and wrapped in phoneGap, by pressing the exit button the following function occurs:
function close_window() {
if (confirm("Exit?")) {
navigator.app.exitApp();
}
}
It does not work..
On clicking the button the function close_window() occurs, 'but navigator.app.exitApp();' line not works.
I think it's because there is no child named app for navigator.. (I tested it in console)
Are there other ways to close an application?