Compatible with Cordova 3