The simpler gettings started guide for "users" only...
This guide assumes that you don't intend to alter the phoneGap code but just use it in your application
Prerequisites
- Install webOS SDK: Available for Windows, OS X, and Linux
Download PhoneGap-Palm
Creating Your PhoneGap Application
Navigate to phonegap_root/palm/framework/www/; this is where your application resides. If you have already built a phonegap application on another platform, drop your html,js, css and assets into this folder (starting with the required index.html). Don't forget phonegap.js!
In the following sections we will assume you are using the phonegap_root/palm/framework/www/ directory layout...
- Edit appinfo.json to set your app id, version, etc.
- Edit the icon.png (remeber it must look good on both white and grey background as the application starts with "both"
- Just open framework/www/ in your favourite editor, build your web application.
- Note that if you open "web content" from "the Internet" this content can not script for security reasons (cross site scripting is not allowed).
Notice that, your index.html must include palm's mojo library, upon which phonegap.js depends. So, above your index.html should include:
<script language="javascript" type="text/javascript" src="/usr/palm/frameworks/mojo/mojo.js" x-mojo-version="1"></script>
<script language="javascript" type="text/javascript" src="phonegap.js"></script>
Also notice that the path to MOJO is where mojo.js is located on the device not in your application structure.
Build and deploy your application to the device or Emulator
In the phonegap_root/palm/framework/, that is the directory above your application directory, create a script file or manually execute the following commands:
Windows bat script:
call palm-package www
call palm-install com.mycompany.yourapp_1.0.0_all.ipk
the name of the ipk file is:
<------ App Id -----> < ver> <type>
com.mycompany.yourapp_1.0.0_all.ipk
App Id and version are deducted from your appinfo.json
Todo: Add other platform script instructions
Helpful Links