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:
- Cordova CLI: 6.4.0
- Ionic Framework Version: 2.0.0-rc.0
- Ionic CLI Version: 2.1.0
- Ionic App Lib Version: 2.1.0-beta.1
- OS:
- Node Version: v6.7.0
And if I do a ionic platform ls
I get:
Available platforms:
- amazon-fireos ~3.6.3 (deprecated)
- android ~6.0.0
- blackberry10 ~3.8.0
- browser ~4.1.0
- firefoxos ~3.6.3
- webos ~3.7.0
- windows ~4.4.0
- wp8 ~3.8.2 (deprecated)
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?