Skip to content

Instantly share code, notes, and snippets.

View pavankumardasireddy's full-sized avatar
😄
Start where you are, Use what you have, Do what you can.

Pavan Kumar Dasireddy pavankumardasireddy

😄
Start where you are, Use what you have, Do what you can.
View GitHub Profile
var apn = require('apn');
var gcm = require('android-gcm');
export default function notification( devicetype, devicetoken, alert, userid, action, profilepic, alertid ) {
if(devicetoken != "(null)") {
var androidApiKey = '', cert = '', key = '', passphrase = '';
cert = 'YOUR .pem certificate path here'; // .pem certificate path
key = 'YOUR .pem key path here'; // key.pem path
passphrase = 'abcd123'; // passphrase