Skip to content

Instantly share code, notes, and snippets.

View novasush's full-sized avatar
😉
Happy and Focussed

Sushrut Ashtikar novasush

😉
Happy and Focussed
View GitHub Profile
@novasush
novasush / push.js
Created June 17, 2019 06:07 — forked from davideast/push.js
Send push notifications with node-apn and Firebase
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) {