if(req.azureMobile.push){
var payload = {
"data": {
"message": 'Welcome'
}
};
req.azureMobile.push.gcm.send(null, payload, function (error) {
if (error) {
logger.error('Error while sending push notification: ', error);
} else {
logger.info('Push notification sent successfully!');
}
});
}
Error: 404 - No service is hosted at the specified address..TrackingId:414e948f-778d-4d9a-b784-63c74a9d86ad_G7,TimeStamp:12/15/2016 10:39:28 AM
at Function.ServiceClient._normalizeError (/home/user/JRNY_code_repo/jrny-api/jrny-api/node_modules/azure-common/lib/services/serviceclient.js:814:23)
/.auth/refresh