Ionic ngCordova ShareService issue


#1

I have installed $cordovaSocialSharing
by executing

cordova plugin add https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git

in package.json there is new entry for the plugin

"cordovaPlugins": [
   ...
    {
      "locator": "https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git",
      "id": "nl.x-services.plugins.socialsharing"
    }
  ]

in ios, android platforms also the plugin is declared but when I try to use it

like $cordovaSocialSharing.share(…) I get error from ng-cordova.js:

undefined is not an object (evaluating '$window.plugins.socialsharing')

at

$window.plugins.socialsharing.share(message, subject, file, link, function () {
          q.resolve(true);
        }, function () {
          q.reject(false);
        });
        return q.promise;
      },

Seems there are some issue on installation.

Any ideas?