How to reference plugin?!

Hi all!
im trying to implement pushwoosh.
i’ve followed this tutorial

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’, ‘’])

.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) {
if (window.StatusBar) {
// org.apache.cordova.statusbar required

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



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

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