How to prevent a web app from loading in browser URL for Tizen TV applications

Original Created Dec 12, 2018 | Regeneration Apr 22, 2026

I have developed a web application that is not a native Tizen app. Currently, I'm loading the web application URL using window.location.href = "url".

When running this on the emulator and TV device, the application loads in a browser instead of running as a normal TV app. On mobile platforms, we can achieve this using WebView. Is there a similar approach for TV applications to avoid the browser and run as a normal Tizen application?

Problem Understanding

The user wants to run a web application on Tizen TV devices without it opening in a browser, similar to how WebView works on mobile platforms. Currently, using window.location.href causes the app to load in the browser.

Solution Methods

  1. Using iframe:

    • You can embed your web application within an iframe in your Tizen web app.
    • This approach keeps the application running within the app container rather than opening in a browser.
  2. Creating a Web Application Project:

    • Instead of loading a remote URL, create a proper Tizen web application project.
    • Package your web assets within the project and run them locally.
  3. Using Tizen Web Runtime:

    • Configure your application as a Web Runtime (WRT) application.
    • This allows your web app to run as a standalone application without browser chrome.

Code Examples

// Using iframe approach
document.body.innerHTML = '<iframe src="your-web-app-url" style="width:100%; height:100%; border:none;"></iframe>';

Additional Tips

  • When using iframe, ensure your web application is designed to work within the iframe constraints.
  • For better performance, consider creating a proper Tizen web application project instead of loading a remote URL.
  • Check the Tizen documentation for Web Application development guidelines.

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.