"Unkown provider: $cordovaSocialSharingProvider" after upgrade to 1.4


#1

I was able to upgrade my project from Meteor 1.2 to Meteor 1.4 quite effortlessly, but my Cordova plugin called cordova-plugin-socialsharing by Eddy Verbruggen stopped working. For some reason Angular-Meteor isn’t able to inject the plugin into my controller anymore.

So after the upgrade I began to get the following error message in my browser console:

angular_angular.js?hash=08f63d2…:13439 Error: [$injector:unpr] Unknown provider: $cordovaSocialSharingProvider <- $cordovaSocialSharing <- ksStreamNewsItemDirective
http://errors.angularjs.org/1.5.3/$injector/unpr?p0=%24cordovaSocialSharing…ovider%20%3C-%20%24cordovaSocialSharing%20%3C-%20ksStreamNewsItemDirective
    at angular_angular.js?hash=08f63d2…:83
    at angular_angular.js?hash=08f63d2…:4433
    at Object.getService [as get] (angular_angular.js?hash=08f63d2…:4586)
    at angular_angular.js?hash=08f63d2…:4438
    at getService (angular_angular.js?hash=08f63d2…:4586)
    at injectionArgs (angular_angular.js?hash=08f63d2…:4610)
    at Object.invoke (angular_angular.js?hash=08f63d2…:4632)
    at angular_angular.js?hash=08f63d2…:7531
    at forEach (angular_angular.js?hash=08f63d2…:336)
    at Object.<anonymous> (angular_angular.js?hash=08f63d2…:7529)

And I do have the Cordova plugin installed:

(1.4) $ meteor list | grep cordova
cordova:cordova-plugin-socialsharing     https://github.com/EddyVerbruggen/So...
cordova:cordova-plugin-themeablebrowser  0.2.12

My guess is that in Meteor >1.3 I should import the Cordova plugin somehow in order to be able to inject it. But I haven’t been able to find any information about this. So what should be done differently between Meteor 1.2 and Meteor >1.3, when we talk about using Cordova plugins (with Angular-Meteor)?