# Ionic Package app giving error "PushNotification plugin is required"

**URL:** <https://forum.ionicframework.com/t/ionic-package-app-giving-error-pushnotification-plugin-is-required/70901>\
**Category:** ionic-v3\
**Created:** [November 21, 2016, 4:56pm UTC](https://forum.ionicframework.com/t/ionic-package-app-giving-error-pushnotification-plugin-is-required/70901 "2016-11-21T16:56:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![randbrown](https://avatars.discourse-cdn.com/v4/letter/r/6bbea6/32.png) [@randbrown](https://forum.ionicframework.com/u/randbrown)\
**Post date:** [November 21, 2016, 4:56pm UTC](https://forum.ionicframework.com/t/ionic-package-app-giving-error-pushnotification-plugin-is-required/70901/1 "2016-11-21T16:56:10Z")

</div>

New app using Ionic cloud services for Push, Package, and Deploy. On android, when running the app, I get this console log message:

> PushNotification plugin is required

However, I had previously installed the plugin as per the documentation:

`cordova plugin add phonegap-plugin-push --variable SENDER_ID=xxxxxxxxxxx --save`

to be sure, I even tried using ionic command instead (tried with and without the --save):  
`ionic plugin add phonegap-plugin-push --variable SENDER_ID=xxxxxxxxxxx`

I’m using this command to package:  
`ionic package build android --profile abapi_dev`

config.xml has the relevant entry:

> ```
> <plugin name="phonegap-plugin-push" spec="~1.9.0">
> <variable name="SENDER_ID" value="xxxxxxxxxxx"/>
> </plugin>
> 
> ```

I’ve also tried ionic state save command, but still the apk built by the Package service does not appear to have the push plugin installed.  
Opening up the .apk file, the assets/www/plugins folder does not have anything that looks like the push plugin.

Any suggestions for how to ensure it gets the plugin?  
Is there a way to view the debug build logs from the Package service?

Thanks!

---

<div class="post-metadata">

**Author:** ![envoyglobal](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@envoyglobal](https://forum.ionicframework.com/u/envoyglobal)\
**Post date:** [February 17, 2017, 7:46pm UTC](https://forum.ionicframework.com/t/ionic-package-app-giving-error-pushnotification-plugin-is-required/70901/2 "2017-02-17T19:46:35Z")

</div>

We are having the exact same problem. All of our other plugins are packaged correctly by the cloud service, and running locally also includes the push plugin. However, if we download and run a package created by the ionic cloud, we get the following error:

Ionic Push: PushNotification plugin is required. Have you run `ionic plugin add phonegap-plugin-push` ?

We are currently on the latest version of ionic and all plugins.

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [May 22, 2017, 6:55pm UTC](https://forum.ionicframework.com/t/ionic-package-app-giving-error-pushnotification-plugin-is-required/70901/3 "2017-05-22T18:55:11Z")

</div>

Split this topic on May 22, 2017, 6:55pm UTC

A post was split to a new topic: [WARN: Native: tried calling PushNotification.init, but the PushNotification plugin is not installed](https://forum.ionicframework.com/t/warn-native-tried-calling-pushnotification-init-but-the-pushnotification-plugin-is-not-installed/91327)
