How to Exit a Remote Web Application in Tizen TV

Original Created Jun 13, 2017 | Regeneration Apr 22, 2026

I have a remote web application for Tizen TV that is redirected from config.xml to a remote URL instead of using index.html. As a result, I cannot access the Tizen object in the window to exit the application using tizen.application.getCurrentApplication().exit().

How can I exit from the remote web application using JavaScript?

Problem Understanding

When developing a remote web application for Tizen TV that loads content from an external URL (configured in config.xml), you lose direct access to the Tizen object in the window context. This prevents you from using the standard tizen.application.getCurrentApplication().exit() method to close the application.

Solution Methods

  1. Basic Window Close Method:

    • Try using window.close()
    • Note: This works on older Tizen TV models but may not work on 2016+ models (e.g., UE55KS8500)
  2. Self-Reference Window Close Method:

    • Create a self-reference to the window and then close it:
    function closeApp() {
        var appWin = window.open("", "_self");
        appWin.close();
    }
    

Code Examples

// Method 1: Simple window close
window.close();

// Method 2: Self-reference window close
function closeApp() {
    var appWin = window.open("", "_self");
    appWin.close();
}

Additional Tips

  • The effectiveness of these methods may vary depending on the Tizen TV model and version
  • For newer Tizen TV models, consider implementing a custom communication channel between your remote web application and the Tizen host application
  • Always test your solution on the target device models

Customize your cookie preferences

You can enable or disable non-essential cookies. Essential cookies are always on to ensure the site works properly and to keep you signed in.

Necessary

These cookies are necessary for the website to function properly and cannot be switched off. They help with things like logging in and setting your privacy preferences.

Always on

Analytics

These cookies help us improve the site by tracking which pages are most popular and how visitors move around the site.

Enable analytics cookies
Public Forum Public Forum
Employees only. Please sign in with your company account.