title: Ionic: $cordovaSocialSharing cannot read property of undefined
body: <p>I want to use this plugin: <a href="http://ngcordova.com/docs/plugins/socialSharing/" rel="nofollow">$cordovaSocialSharing</a> since it's the only plugin I've found for native social buttons on Ionic...</p>
  
  <p>I get this error when I'm running my code in Chrome console:
  "Cannot read property 'socialsharing' of undefined" @ (ng-cordova.js:6715)</p>
  
  <p>I reinstalled ng-Cordova as it says in ngcordova.com and the plugin multiple times but it seems it doesnt' work...I tried in an Android emulator and neither does.</p>
  
  <p>Here my code:
  In my controllers.js:</p>
  
  <pre><code>angular.module('starter.controllers', ['ionic', 'ionic-ratings', 'onezone-datepicker', 'ngCordova'])
  </code></pre>
  
  <p>then,</p>
  
  <pre><code>.controller('CaravanDetailCtrl', function($rootScope, $scope, $cordovaSocialSharing, sweetAlert) {
     $scope.socialsharingFacebook = function() {
  
              $cordovaSocialSharing
                  .shareViaFacebook("msg", "img", "url")
                  .then(function(result) {
                      SweetAlert.swal({   
                          title: "",   
                          text: "success",   
                          type: "success",   
                          showCancelButton: false,   
                          confirmButtonColor: "rgba(5, 60, 84, 0.8)",   
                          confirmButtonText: "OK",   
                          closeOnConfirm: true 
                      });
                  }, function(err) {
                      SweetAlert.swal({   
                          title: "",   
                          text: "sorry",   
                          type: "error",   
                          showCancelButton: false,   
                          confirmButtonColor: "rgba(5, 60, 84, 0.8)",   
                          confirmButtonText: "OK",   
                          closeOnConfirm: true 
                      });
                  });
      }
  </code></pre>
  
  <p>}</p>
  
  <p>I tried with this too (in controllers.js):</p>
  
  <pre><code>$ionicPlatform.ready(function() {
     $cordovaSocialSharing
              .shareViaFacebook("msg", "img", "url")
              .then(function(result) {
                  SweetAlert.swal({   
                      title: "",   
                      text: "success",   
                      type: "success",   
                      showCancelButton: false,   
                      confirmButtonColor: "rgba(5, 60, 84, 0.8)",   
                      confirmButtonText: "OK",   
                      closeOnConfirm: true 
                  });
              }, function(err) {
                  SweetAlert.swal({   
                      title: "",   
                      text: "sorry",   
                      type: "error",   
                      showCancelButton: false,   
                      confirmButtonColor: "rgba(5, 60, 84, 0.8)",   
                      confirmButtonText: "OK",   
                      closeOnConfirm: true 
                  });
              });
  }
  </code></pre>
  
  <p>Any idea how to solve this or alternatively, any idea of another plugin that actually works on Ionic?</p>