Cordova hooks used for UI5.