Tizen Nacl TV app -exit on return

Tizen Nacl TV app -exit on return

BY 06 May 2017 Native Application Development

Hi, 

On a nacl TV app , how do i make the return button on remote exit/terminate the app ?

 I have tried adding this command to code : 


 

document.getElementById(“yes_exit_button”).addEventListener(‘tizenhwkey’, function(e) {
    if(e.keyName == “back”)
        tizen.application.getCurrentApplication().exit();
});

 

but it doesnt work on emulator / simulator…return button does nothing.

works only for web applications…

 

thanks

 

Written by