ngCordova ProgressIndicator Unknown provider: $cordovaProgressProvider <- $cordovaProgress

Hi I’am using some ngcordova plugins in my project, everything works great but when i am using org.pbernasconi.progressindicator i get this error. I don’t know whats happening, everything else just works fine.

I install it running this command.

cordova plugin add org.pbernasconi.progressindicator

and then i add the service to the controller constructor.

.controller('MapCtrl', function($scope, $http, $stateParams, $cordovaProgress, $cordovaDeviceOrientation, $cordovaGeolocation, $location , leafletData) {

When i execute the genymotion emulator i got this error.

Error: [$injector:unpr] Unknown provider: $cordovaProgressProvider <- $cordovaProgress
http://errors.angularjs.org/1.2.25/$injector/unpr?p0=ordovaProgressProvider%20%3C-%20%24cordovaProgress
    at file:///android_asset/www/lib/ionic/js/ionic.bundle.js:7703:12
    at file:///android_asset/www/lib/ionic/js/ionic.bundle.js:11427:19
    at Object.getService [as get] (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:11555:39)
    at file:///android_asset/www/lib/ionic/js/ionic.bundle.js:11432:45
    at getService (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:11555:39)
    at invoke (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:11582:13)
    at Object.instantiate (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:11602:23)
    at file:///android_asset/www/lib/ionic/js/ionic.bundle.js:14906:28
    at updateView (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:42986:30)
    at file:///android_asset/www/lib/ionic/js/ionic.bundle.js:42942:9

Just figured this out, i know it is a long ago this topic started, but for the next who might be looking…
The solution is to just use ProgressIndicator.

ProgressIndicator.show(“label”);
ProgressIndicator.hide();

Just so you know, at this moment ONLY .show() is supported on Android.