$cordovaSocialSharing has stopped working for me

This is driving me a little bit mad. I had the $cordovaSocialSharing plug-in working ok and as far as I know I have not changed my code at all. But now when I try to call it I get an error:

Error: undefined is not an object (evaluating ‘n.plugins.socialsharing’)

The plug-in has been included ok (I checked).

In index.html I have:

<script src="js/ng-cordova.min.js"></script>
<script src="cordova.js"></script>

In my app.js I am injecting ngCordova

In my controller where I want to use the plug-in I am injecting $cordovaSocialSharing

I am not sure what else to check? It was working just a couple of days ago!

Any ideas?

I finally got it working by removing the plug-in and re-adding it. I had done this before but this time it seems to have worked.