I’m trying to use org.apache.cordova.file plugin but it fails on load time. I’m very surprised because I understand org.apache.cordova.file plugin is very common. I’ve tried different cordova plugin file versions and even cordova versions too but I’m not able to find a way to make it work. Probably, I’m missing some fundamental step but I’ve read many times the documentations and I did not find anything …
In order to ensure it is not related to my app, I’ve installed a clean ionic template and I’m having the same problem. If I run with "CordovaSim I see following error.
If I start with an emulator I see following error.
Channel not fired: onFileSystemPathsReady
I’m able to easily reproduce the problem just executing following commands:
$ ionic -version 1.3.11 $ cordova -version 4.2.0 $ ionic start ionic-testfile -a 'TestFile' -i com.ionicframework.test.file tabs Creating Ionic app in folder /Users/jcastro/workspace.picdeal/ionic-testfile based on tabs project Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip [=============================] 100% 0.0s Downloading: https://github.com/driftyco/ionic-starter-tabs/archive/master.zip [=============================] 100% 0.0s Update config.xml Initializing cordova project … $ cd ionic-testfile/ $ ionic plugin add org.apache.cordova.file Fetching plugin "org.apache.cordova.file" via plugin registry Running command: /Users/jcastro/workspace.picdeal/ionic-testfile/hooks/after_plugin_add/010_register_plugin.js /Users/jcastro/workspace.picdeal/ionic-testfile $ ionic platform add android Running command: /Users/jcastro/workspace.picdeal/ionic-testfile/hooks/before_platform_add/init_directories.js /Users/jcastro/workspace.picdeal/ionic-testfile Creating android project... … Running command: /Users/jcastro/workspace.picdeal/ionic-testfile/hooks/after_plugin_add/010_register_plugin.js /Users/jcastro/workspace.picdeal/ionic-testfile $ ionic emulate android -l -c Setup Live Reload … Waiting for emulator... HAX is working and emulator runs in fast virt mode Booting up emulator (this may take a while).....BOOT COMPLETE Installing app on emulator... Using apk: /Users/jcastro/workspace.picdeal/ionic-testfile/platforms/android/ant-build/CordovaApp-debug.apk Launching application... LAUNCH SUCCESS 0 961179 log deviceready has not fired after 5 seconds. 1 961181 log Channel not fired: onFileSystemPathsReady