This topic describes how you can implement an application exit: through user interaction, or internally based on the application logic.
When the user exits a TV application, JavaScript execution is paused, and the current application state is not stored. When the application is launched again, the application state is reset.
If you do not want the application to terminate, but only hide in the background, implement Multitasking.
There are 2 ways to terminate a TV application:
Long-pressing the "Return/Exit" key forces the application to terminate. Do not register the "Return/Exit" key long-press.
exit()
getCurrentApplication().exit()
tizen.application.getCurrentApplication().exit();
The Samsung Apps TV policy defines requirements for the implementation of the "Return/Exit" key click:
You must make the application exit confirmation popup independently, using an HTML element.