Error: Variable(s) missing (use: --variable SENDER_ID=value)


#1

I am trying implement push notification in my application. Just gone through Ionic push notification configuration. Getting below error while executing command. Please help me

E:\Testing\myApp>ionic plugin add phonegap-plugin-push
Updated the hooks directory to have execute permissions
Fetching plugin “phonegap-plugin-push” via npm
Error: Variable(s) missing (use: --variable SENDER_ID=value).


#2

ionic plugin add phonegap-plugin-push --variable SENDER_ID=value

where value is your sender_id from GCM. Thats what the messages says :wink: I also ran into it, but the message isn’t that cryptic.

If you dont use GCM, you can basically put anything there. You can also change it later