Closing application in android 6.0

0

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".

    
asked by anonymous 21.08.2017 / 18:26

1 answer

0

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();
}
    
21.08.2017 / 18:33