We need to detect when we are using the new Moodle Mobile simulator (https://github.com/jleyva/simulator) with the app and then load the specific wrapper for Cordova API for that emulator.
It will allow us to work using the Filesystem in the browser (without testing in the real device) and also download and upload files using XHR2, record audio, take pictures, etc...
We need improve the simulator in order to be able to simulate Push notifications, Android Intents, etc...