dionisis pot
Posts: 0
Joined: Thu Jan 02, 2014 12:23 pm

Back button on device close application

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Back button on device close application

Hi,

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

dionisis pot
Posts: 0
Joined: Thu Jan 02, 2014 12:23 pm

Back button on device close application

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?

Return to “Issues”