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

I have installed cordova plugin (cordova plugin add phonegap-plugin-push --variable SENDER_ID=“XXXXXXX”).but still receiving this error??


I have same issue only on iOS, android works fine

Ive ran into this trouble, and i spent 1 and a half day on it. So i will tell my problems with plugins and how i solved it, if it helps you or other who have had the same problems it would be worth it.

1st Problem: My problem was that when i opened my ionic project into xcode, the plugins folder was empty, and so, no plugins were added on the build, but a half day later a found that (some censured how) cordova deleted the following file: ProjectName/plugins/ios.json (in should have occured in some task ran in cli, dont know for sure), so when adding or updating platform ios would take no effect in terms of plugins, it gereneted the platform folder without the plugins where it should be (ProjectName\platforms\ios\ProjectName\Plugins), cause ios.json was not there when running “platform add ios” or “platform update ios”, so it didnt fetched the plugins.

Just for test purpose, i copied the android.json, and it worked. Dont know why, but, reseting state, adding or updating platform doesnt handle that problem, it was like cordova didnt care if i have a platform and dont have the json file for the plugins and dependecies for it.

2nd Problem: when running ionic state reset the CLI does not re-install the plugins that have --variable parameters, so if you reset your projects state, you have to run 'ionic/cordova plugin add phonegap-plugin-push --variable SENDER_ID=“putyoursenderidhere” ', after that you should run “ionic/cordova platform add ios”, then it will install the plugins correctly.

For the CLI to be able to re-install plugins that need --variable you should have to add
“variables”: {
“SENDER_ID”: “yoursenderidhere”
“locator”: “phonegap-plugin-push”

to package.json, but it didnt worked for me.

BulkPush is a solution I have been running after so far. It has helped me in generating a solid customer base. I must recommend this unique and mind-boggling tool to every person!