(SOLVED) How to know if the Android back button was pressed with javascript

Hello. (I’m using a translator, in case there are typos.)

I wanted to know if there is a way to use javascript code to be able to manipulate the behavior of the Android back button. So, if the player is on the scene, and mistakenly clicks the back button, a notification can be sent to confirm if the action was voluntary. Or even being able to lock the back button, and handle the buttons customized by the game for a better experience. Thanks in advance. I have used a translator, in case there are typos.

No need for JavaScript, there is an extension for that

1 Like

Muchas gracias.
Voy a buscar la extensión. Gracias.