Page 1 of 1

Back button on device close application

Posted: Fri Jan 10, 2014 12:59 pm
by dionisis pot

I would like to know step by step how can I set the back button of the device to close the application when it pressed and not return to the previous page.


Back button on device close application

Posted: Fri Jan 10, 2014 1:43 pm
by Kateryna Grynko

Hi,

Please check this conversation: https://getsatisfaction.com/apperyio/...


Back button on device close application

Posted: Fri Jan 10, 2014 2:13 pm
by dionisis pot

So the only thing that I must do is to create a java script file with the following code:
document.addEventListener("backbutton", function( e )
{
navigator.app.exitApp();
}, false);

Must I call this function inside the applicatin with a special event?
Is anything else that I must do?


Back button on device close application

Posted: Fri Jan 10, 2014 3:50 pm
by Kateryna Grynko