Ionic Package app giving error "PushNotification plugin is required"

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"/>

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?


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.


A post was split to a new topic: WARN: Native: tried calling PushNotification.init, but the PushNotification plugin is not installed