This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var apn = require("apn"); | |
var Firebase = require("firebase"); | |
var service = new apn.connection({ production: false }); // true for production pipeline | |
// Create a reference to the push notification queue | |
var pushRef = new Firebase("<your-firebase>.firebaseio.com/notificationQueue"); | |
// listen for items added to the queue | |
pushRef.on("child_added", function(snapshot) { |