It's fairly easy to bundle a service with any webOS apps. All you have to do is:
-
Create three directories in your current webOS app directory. Name them anything you like but I'd recommend
application
,package
andservice
-
Move all original app files into
application
-
Copy and modify the basic FileIO service from https://gist.github.com/1014188 into
service
Change theservices.json
file to refer to your Service ID. The Service ID has to be a subdomain of your App ID. -
Copy and
packageinfo.json
from this gist intopackage
Modify it to refer to your App ID and Service ID. -
Package the whole thing using
palm-package application package service
And you're done.