Missing push plugin after ionic package


#1

I’m using ionic2 and when building locally, everything is fine (except the boot time of the app) but when I ionic package the app, it is missing the push plugin completely (according to logcat on the device).

Some say If they use phonegap-plugin-psuh 1.8.4 instead of the latest, it is working as expected but not with 1.9.2. What can cause such a problem?


#2

I’m having the same issue. Everything works locally but Ionic Package does not include the plugin.


#3

Hello !

Same issue with Ionic 3.2.0, I tried this solution but it didn’t work for me : https://github.com/phonegap/phonegap-plugin-push/issues/1407

Did you find any solution ?


#4

No, finally I had moved over to the FCM plugin and now I don’t use ionic package either.


#5

Ok, after a few days of digging the internet, I came to some kind of solution (I didn’t try iOS though). I leave it there if anyone encounters the same issue :

Install Cordova CLI v. 6 :
npm install -g cordova@6

Remove cordova-android platform :
cordova platform rm android

Add cordova-android v. 6.1.2 :
ionic cordova platform add android@6.1.2 --save

Build your package with a valid profil
ionic package build android --profile <yourProfile>

Hope Ionic will come up with a better solution soon :wink: