android - Unable to push GCM notification using node-gcm -
i need push gcm node, using node-gcm, getting enotfound error
var gcm = require('node-gcm'); var gcmmessage = new gcm.message({ collapsekey: 'notify', delaywhileidle: false, timetolive: 3600, data: { title: "hai", message: "message", } }); var gcmids = ['<myid>']; var sender = new gcm.sender('<mysender id>',{'proxy':'<proxyip>:8080'}); sender.send(gcmmessage, gcmids, 4, function(err, ret){ console.log('>>> sendgcm: ', err, ret); });
i getting error
sendgcm: { [error: tunneling socket not established, cause=getaddr info enotfound] code: 'econnreset' } null
Comments
Post a Comment