The Hybrid Web Container comes with the PhoneGap library linked in and ready to use.
The PhoneGap library included with Sybase Unwired Platform handles common tasks supported by Android and iOS devices, for example, accessing geolocation, accessing contacts, and invoking calls to make those common functions available to JavaScript.
You can make PhoneGap calls from the Hybrid Web Container JavaScript, such as Custom.js. For example, to save an entry to the contacts database, you can implement something similar to:
var contact = navigator.contacts.create(); contact.nickname = "Plumber"; var name = new ContactName(); name.givenName = "Jane"; name.familyName = "Doe"; contact.name = name; // save contact.save(onSaveSuccess,onSaveError);