Program the back button on mobile phone?
How can I prevent the application from going back to the previous screen when the user pushes the "back" button on his/her Android device?
How can I direct him/her to the startscreen?
Thank you
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
How can I prevent the application from going back to the previous screen when the user pushes the "back" button on his/her Android device?
How can I direct him/her to the startscreen?
Thank you
Hello! You should add JS handler to navigate to Startscreen when Backbutton is pressed. This should help http://docs.phonegap.com/en/2.2.0/cor... (see backbutton event)
Thank you Marina,
Because I am a novice Tiggzi user,...
Where should I put the script
document.addEventListener("backbutton", onBackKeyDown, false);
function onBackKeyDown() {
// Handle the back button
???
}
Startscreen lets say is my target page,
Thanks again
Try to create Custom JS and enter the next code
document.addEventListener("backbutton", onBackKeyDown, false);
function onBackKeyDown() {
Tiggzi.navigateTo('Startscreen');
}
Thank you very much!
(sorry for the delayed answer)