A few useful Cordova hooks