Cleaning up the UI and analytics calls when running in Cordova