Wrapper for Cordova