Forum

jonas.rausch
      Has successfully completed the online course Introduction
      Has successfully completed the online course Intermediate (200)
      Has successfully completed the online course Advanced (300)
    4 years ago #18890
    Up
    2
    Down
    ::

    Hi Ralf,

     

    The Device Button events like “back” and “home” can be detected and overwritten via JQuery/JS:

     

    You can add this line of code to the onInit event pf your first screen:

    document.addEventListener(‘backbutton’, function(){
    //do stuff here
    }

    Be Aware that overwriting the event will supress the native functions of the button, if you want to exit the app, you will need to code that yourself.