Skip to content

Instantly share code, notes, and snippets.

@costinelmarin
Created May 2, 2016 05:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save costinelmarin/093de1eabc7047fea5998b4394ea84e1 to your computer and use it in GitHub Desktop.
Save costinelmarin/093de1eabc7047fea5998b4394ea84e1 to your computer and use it in GitHub Desktop.
Push Meteor Cordova
{
"apn": {
"passphrase": "password",
"key": "ios/apn-production/AppProductionKey.pem",
"cert": "ios/apn-production/AppProductionCer.pem"
},
"apn-dev": {
"passphrase": "password",
"key": "ios/apn-development/AppDevKey.pem",
"cert": "ios/apn-development/AppDevCer.pem"
},
"gcm": {
"apiKey": "apiKeyHere",
"projectNumber": 1234567
},
"production": false,
"badge": true,
"sound": true,
"alert": true,
"vibrate": true
}
Meteor.startup(function () {
Push.debug=true;
});
// permission
Push.allow({
send: function(userId, notification) {
return true; // Allow all users to send
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment