# getPushPlugin error when set dev\_push to false

**URL:** <https://forum.ionicframework.com/t/getpushplugin-error-when-set-dev-push-to-false/50405>\
**Category:** ionic-v1\
**Created:** [April 26, 2016, 8:43am UTC](https://forum.ionicframework.com/t/getpushplugin-error-when-set-dev-push-to-false/50405 "2016-04-26T08:43:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![torejx](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@torejx](https://forum.ionicframework.com/u/torejx)\
**Post date:** [April 26, 2016, 8:43am UTC](https://forum.ionicframework.com/t/getpushplugin-error-when-set-dev-push-to-false/50405/1 "2016-04-26T08:43:53Z")

</div>

Hi all,

I’m following the [Push guide](http://docs.ionic.io/docs/push-overview) and everything is ok with limited push. When I try the full setup (when I change dev\_push to false), I see this error on the console: self.\_getPushPlugin(…) is undefined

Am I missing something?

Thanks

---

<div class="post-metadata">

**Author:** ![michalz](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@michalz](https://forum.ionicframework.com/u/michalz)\
**Post date:** [May 12, 2016, 10:32am UTC](https://forum.ionicframework.com/t/getpushplugin-error-when-set-dev-push-to-false/50405/3 "2016-05-12T10:32:48Z")

</div>

This is because you cant do real push in the web session. Change the dev\_push to true then run the app on a real device! dev\_push true is only for a `ionic serve` development session.

---

<div class="post-metadata">

**Author:** ![olavocneto](https://avatars.discourse-cdn.com/v4/letter/o/da6949/32.png) [@olavocneto](https://forum.ionicframework.com/u/olavocneto)\
**Post date:** [May 25, 2016, 5:48pm UTC](https://forum.ionicframework.com/t/getpushplugin-error-when-set-dev-push-to-false/50405/4 "2016-05-25T17:48:44Z")

</div>

```bash
ionic plugin rm phonegap-plugin-push
ionic plugin add phonegap-plugin-push --variable SENDER_ID="XXXXXXX"

```

2015-05-25, phonegap-plugin-push 1.6.4  
You may need to install new android API.
