# getPushPlugin error when running on device

**URL:** <https://forum.ionicframework.com/t/getpushplugin-error-when-running-on-device/55317>\
**Category:** ionic-v1\
**Created:** [June 20, 2016, 8:26pm UTC](https://forum.ionicframework.com/t/getpushplugin-error-when-running-on-device/55317 "2016-06-20T20:26:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vialware](https://avatars.discourse-cdn.com/v4/letter/v/c37758/32.png) [@vialware](https://forum.ionicframework.com/u/vialware)\
**Post date:** [June 20, 2016, 8:26pm UTC](https://forum.ionicframework.com/t/getpushplugin-error-when-running-on-device/55317/1 "2016-06-20T20:26:27Z")

</div>

After i set dev\_push false i get the following JS error when running this on a device. I’m only building for iOS not android. Also i’m using phonegap build to generate the application.

`TypeError: t._getPushPlugin().init is not a function. (In 't._getPushPlugin().init(t._config.pluginConfig)', 't._getPushPlugin().init' is undefined) (anonymous function) — ionic.io.bundle.min.js:3:6788 value — ionic.io.bundle.min.js:3:11087 value — ionic.io.bundle.min.js:3:6583 (anonymous function) — app.js:45 (anonymous function) — ionic.bundle.js:53329 onPlatformReady — ionic.bundle.js:2491 fire — cordova.js:775 (anonymous function) — cordova.js:229`

---

<div class="post-metadata">

**Author:** ![prakharter](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/prakharter/32/101076_2.png) [@prakharter](https://forum.ionicframework.com/u/prakharter)\
**Post date:** [June 24, 2016, 6:04pm UTC](https://forum.ionicframework.com/t/getpushplugin-error-when-running-on-device/55317/2 "2016-06-24T18:04:00Z")

</div>

i am also facing this issue .Please advise

---

<div class="post-metadata">

**Author:** ![eldy](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/eldy/32/71764_2.png) [@eldy](https://forum.ionicframework.com/u/eldy)\
**Post date:** [June 27, 2016, 3:44pm UTC](https://forum.ionicframework.com/t/getpushplugin-error-when-running-on-device/55317/3 "2016-06-27T15:44:42Z")

</div>

I have this error too! on android!

> 5 159576 error TypeError: t.\_getPushPlugin(…).init is not a function  
> at [http://192.168.0.11:8100/lib/ionic-platform-web-client/dist/ionic.io.bundle.min.js:3:6783](http://192.168.0.11:8100/lib/ionic-platform-web-client/dist/ionic.io.bundle.min.js:3:6783)

---

<div class="post-metadata">

**Author:** ![marask](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@marask](https://forum.ionicframework.com/u/marask)\
**Post date:** [July 8, 2016, 1:33pm UTC](https://forum.ionicframework.com/t/getpushplugin-error-when-running-on-device/55317/4 "2016-07-08T13:33:22Z")

</div>

Same problem here, on android.  
It used to work well, then suddenly stopped.  
Please advise!
