Build Your First App for webOS TV

Web apps are written using HTML with copious amounts of CSS and JavaScript for style and functionality. Any modern Web browser can deliver this type of apps to the user.  With webOS TV, web apps are elevated to the lofty title of a first class citizen - web apps on webOS TV are given access to the same hardware, and OS features that typically available to native apps.

 

Web apps built for webOS TV are very similar to standard web apps. Like the standard web applications, you can create web apps for webOS TV using standards based web technologies like HTML, CSS, and JavaScript. Anyone with experience in building web applications can easily start developing web apps for webOS TV.

 

Now, just create your app using the CLI.

  1. Run the webOS TV CLI.
     

  2. Create new app with Enyo bootplate.

    ares-generate -t moonstone-2014 first-app

    Now you can continue developing and testing your app.
     

  3. Edit ./first-app/appinfo.json file. Update "id" and "title" properties in appinfo.json file with text editor as below.

    {
        "id": "com.yourdomain.app.firstapp",
        "version": "0.0.1",
        "vendor": "My Company",
        "type": "web",
        "main": "index.html",
        "title": "singlepane",
        "icon": "icon.png",
        ...
    }

     

  4. Package your app from app directory. If app is packaged successfully, you can see the created .ipk file.

    ares-package first-app

     

  5. Run the webOS TV Emulator.
     

  6. Install your app to emulator. Be sure to use the correct file name for your package.

    ares-install com.yourdomain.app.firstapp_0.0.1_all.ipk

     

  7. Launch your app on emulator.

    ares-launch com.yourdomain.app.firstapp
Navigation