How do I make the button quit in an app with phonegap. We have already tried all the available forms and in none the command executes the "exit".
How do I make the button quit in an app with phonegap. We have already tried all the available forms and in none the command executes the "exit".
I've always used this way and it always works:
<a href="#" onClick="fechaMe();" data-role="button">Fechar App</a>
Javascript
function fechaMe() {
navigator.app.exitApp();
}