I’m getting this error when trying to use the file-transfer plugin.
01-16 14:22:33.966: D/CordovaLog(9740): file:///android_asset/www/lib/ionic/js/ionic.bundle.js: Line 19387 : Error: [$injector:unpr] Unknown provider: $cordovaFileTransferProvider <- $cordovaFileTransfer <- FormCtrl
On a real android device running 4.4.2 kitkat
I am including
$timeout, $cordovaFileTransfer
in the dependencies for the controller and am using the standard code from http://ngcordova.com/docs/plugins/fileTransfer/
I have included the plugins
cordova plugin add org.apache.cordova.file
cordova plugin add org.apache.cordova.file-transfer
My plugins listed my “cordova plugins ls” are
com.ionic.keyboard 1.0.3 "Keyboard"
org.apache.cordova.console 0.2.12 "Console"
org.apache.cordova.device 0.2.13 "Device"
org.apache.cordova.file 1.3.2 "File"
org.apache.cordova.file-transfer 0.4.8 "File Transfer"
org.apache.cordova.media-capture 0.3.5 “Capture”
If anyone has any idea what the issue might be I’d be very grateful for any help.