Meteor-Community-Packages / raix-push

DEPRECATED: Push notifications for cordova (ios, android) browser (Chrome, Safari, Firefox)
https://atmospherejs.com/raix/push
MIT License
513 stars 197 forks source link

Cordova error: Variable(s) missing (use: --variable SENDER_ID=value) #221

Closed sahanDissanayake closed 8 years ago

sahanDissanayake commented 8 years ago

getting this error on the startup shell just when i added android to the meteor app

While adding plugin phonegap-plugin-push@1.6.3 to Cordova project:              
   Cordova error: Variable(s) missing (use: --variable SENDER_ID=value). 

my config.push.js

{
  "apn": {
    "passphrase": "asas",
    "key": "ios/apn-production/PushChatKey.pem",
    "cert": "ios/apn-production/PushChatCert.pem"
  },
  "apn-dev": {
    "passphrase": "asas",
    "key": "ios/apn-development/PushChatKey.pem",
    "cert": "ios/apn-development/PushChatCert.pem"
  },
  "gcm": {
    "apiKey": "AIzaSyDasCLx0q3W-9JXTZI800pYDtIZDH9a2AY",
    "projectNumber": "107076301087"
  },
  "production": false,
  "badge": true,
  "sound": true,
  "alert": true,
  "vibrate": true
}

My cordova-plugins

de.appplant.cordova.plugin.local-notification@0.8.4
org.apache.cordova.dialogs@1.2.1
org.apache.cordova.vibration@2.1.1
phonegap-plugin-push@1.6.3

my raix-version ins .meteor/versions

raix:eventemitter@0.1.3
raix:eventstate@0.0.4
raix:onetimeout@1.0.4
raix:push@3.0.3-rc.4
raix:stubfence@1.0.3

This seems like the GCM > projectNumber does not go down the cordova plugin as the key ??~?

sahanDissanayake commented 8 years ago

Closed this by just removing the phonegap-plugin-push@1.6.3

And I have accidently set the GCM projectNumber as a string, It has to be an Integer

raix commented 8 years ago

Take a look at this branch https://github.com/raix/push/tree/fix-device-dependency-deprecate-json-format it's the 3.0.3-rc.x (soon to be released)

raix commented 8 years ago

read the https://github.com/raix/push/tree/fix-device-dependency-deprecate-json-format#config