We developing a mobile application. First we put registration option in mobile (bluemix js push api). But for a security reason we moved all (register device, push devicebyid,tag ..) options to Node.js server. I go through Node.js Bluemix PUSH API, but i didn't find any register device option there.
i installed
npm install ibmbluemix
npm install ibmpush
i wrote following function in server side.
ibmpush.pushNotificationAll(JSON.parse(req.body),function(response){
res.send(response);
});
ibmpush.pushNotificationDeviceIds(JSON.parse(req.body),function(response){
res.send(response);
});
ibmpush.pushNotificationAll(JSON.parse(req.body),function(response){
console.log("push sent successfully",response);
res.send(response);
});
Please help to register a device through node.js push api.
Getting IBM Mobile Web Push to work with worklight or cordova hybrid apps 3 Answers
Push service does not list registered devices 2 Answers
Hybrid Push Issue - Client Side Cordova/Javascript 3 Answers
Register a consumerId using the REST API 0 Answers
I am using IBM Bluemix push notifications but get errors when trying to register my device. 1 Answer