By
Alex
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.
Run the webOS TV CLI.
Create new app with Enyo bootplate.
ares-generate -t moonstone-2014 first-app
Now you can continue developing and testing your app.
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",
...
}
Package your app from app directory. If app is packaged successfully, you can see the created .ipk file.
ares-package first-app
Run the webOS TV Emulator.
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
Launch your app on emulator.
ares-launch com.yourdomain.app.firstapp
Question
Sanjay Mahto
The App build through the SDK6 is not working on TV with Version 5.X.
Also the App build on the SDK5 is not working on TV with version 6.x. Can somebody help why ? Is some extra handling is to be done in config file. Please let me know
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.