Welcome to LG webOS - Smart TV, Phone, Signage, Appliance User to User Support Forum

Register now to gain access to our webOS user support forum. Once registered and logged in, you will be able to post a user to user support request topic to this site or reply to existing topics posted by other users. You can also take part in our other webOS user forums. You'll be able to customize your profile, receive reputation points, while also communicating with other members via your own private inbox, plus much more!

This message will be removed once you have signed in.

Alex

Build Your First App for webOS TV

1 post in this topic

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

Share this post


Link to post
Share on other sites
  •  Like what you are reading? Please help us by sharing this content.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  •  Like what you are reading? Please help us by sharing this content.