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,packageandservice -
Move all original app files into
application -
Copy and modify the basic FileIO service from https://gist.github.com/1014188 into
serviceChange theservices.jsonfile to refer to your Service ID. The Service ID has to be a subdomain of your App ID. -
Copy and
packageinfo.jsonfrom this gist intopackageModify it to refer to your App ID and Service ID. -
Package the whole thing using
palm-package application package service
And you're done.