I am trying to add the phonegap-push-plugin as described in the doc.
I found this thread listing the problem but with no solution given.
As explain in the doc, I did a CLI in [My project folder]: ionic plugin add phonegap-plugin-push --variable SENDER_ID="[project id from Google Developper Console]"
At firts I had issue with Cordova and Cordova-android version. I updated Cordova from 6.3.0 to 6.4.0 and then did a CLI: ionic platform rm android to remove the existing version 5.2 Cordova-android project.
After that when I do a ionic info I get:
And if I do a ionic platform ls I get:
Available platforms:
Now the only problem left when I launch ionic plugin add phonegap-plugin-push --variable SENDER_ID="[project id from Google Developper Console]" is this message:
Error: Cannot find plugin.xml for plugin "phonegap-plugin-push". Please try adding it again.
Any idea?
I experienced a similar error albeit when trying to add the storage plugin:
Error: Cannot find plugin.xml for plugin "cordova-sqlite-storage". Please try adding it again.
I found out that the plugin folder somehow still existed in myapp/plugins such that I had a myapp/plugins/cordova-sqlite-storage
I deleted myapp/plugins/cordova-sqlite-storage plugin directory and added the plugin afresh and it was successful.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With