Phonegap API implementation for Ubiquity.