How to reference plugin?!

Hi all!
im trying to implement pushwoosh.
i’ve followed this tutorial https://www.pushwoosh.com/programming-push-notification/android/android-additional-platforms/phonegapcordova-sdk-integration/

im getting this error
app.js:23 Uncaught TypeError: Cannot read property ‘pushNotification’ of undefined

here’s the code :
angular.module(‘starter’, [‘ionic’, ‘ngCordova’,‘starter.controllers’, ‘starter.services’])

.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
// for form inputs)
if (window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
}
if (window.StatusBar) {
// org.apache.cordova.statusbar required
StatusBar.styleDefault();
}

    function initPushwoosh() {
      var pushNotification = window.plugins.pushNotification;
      if(device.platform == "Android")
      {
        
        registerPushwooshAndroid();
      }else if(device.platform == "iPhone" || device.platform == "iOS")
      {
        // registerPushwooshIOS();
      }
    }

initPushwoosh();

});
})

i believe the error is happening because application doesn’t recognizing the plugin, but i dont know how or where to reference correctly.

Use ngCordova plugin wrapper/provider instead.

so for push notifications it will be $cordovaPush
http://ngcordova.com/docs/plugins/pushNotifications/

Same issue here… :frowning: Did anyone find a solution :sweat: