16
Views
3
Comments
HOW TO DISABLE THE ANDROID AND IOS BACK BUTTON
Application Type
Mobile

Hie, what is the jquery for disabling the android and ios back button of the main device.

and where do i put it?

Thank you

Rank: #94

Hello Rudo,

Hope you're doing well.

For disabling the back button of your device, you can use this JavaScript:

document.addEventListener("backbutton", function(){}, false);


Try to place it in a JavaScript node inside OnApplicationReady and OnApplicationResume events of your application:

Let me know if it worked for you :)


Kind regards,

Rui Barradas

I did try it and it did not work, I am trying a forge component