Home

Awesome

<!-- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. # -->

Cordova webOS


📌 Deprecation Notice

This repository is deprecated and no more work will be done on this by Apache Cordova. You can continue to use this and it should work as-is but any future issues will not be fixed by the Cordova community.

Feel free to fork this repository and improve your fork. Existing forks are listed in Network and Forks.


Cordova webOS is a skeleton webOS application, along with JavaScript wrapper libraries, which allow a developer to build an application for an LG webOS device using web technologies. This same code can be built for iPhone, BlackBerry, Symbian, and more to come ...

Pre-requisites

You should have the webOS TV SDK installed, which installs the ares-sdk-tools which are used for packaging and device installation. For a detailed step-by-step installation and setup guide, see here.

Project Management with Cordova webOS

This cordova-webos template tool includes 3 main commands to create and manage your cordova projects. Open a terminal, and navigate to the root Cordova webOS folder (where this readme.md file is located). If you don't see the node_modules folder, run npm install ., and now you all ready to use the commands:

Cordova Project Utilities

Included with each generated Cordova webOS project template are a set of useful tools.

Developing Cordova Apps

Just open the project in your favourite editor, build your web app, and run the appropriate make command indicated above. Edit appinfo.json to set your app version, etc.

Cordova-webOS fires a deviceready that guarantees all the Cordova APIs are in place. You can run your code at deviceready like so:

document.addEventListener('deviceready', function() {
    // do cool Cordova things
}, false);

The rest is just like any other webapp, with the benefit of Cordova's standardized APIs available to use.

Helpful Links