ngCordova file-transfer unkown provider $cordovaFileTransferProvider

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.

1 Like

My hunch is that this issue was related to me using a slightly older version of ngCordova. When I started with a fresh project readded ngCordova with bower, it worked. I hope this helps anyone else in the same position.

1 Like

Have the same error… Already tried everything… Does anyone help or answer?! I’m using only newest releases of Ionic&ngCordova

Install ngCordova in your project.

It works for me!

http://ngcordova.com/docs/install/

1 Like