2
ibmpush.jsでsendNotificationByDeviceIdsを使用することはできませんし、以下のように機能sendNotificationByDeviceIdsを使用します。エラーメッセージがIBMプッシュ:私はアプリケーションを持っている
PushNotificationToConsumer: function(req, res) {
queryCustomer.find({jpay_no : jpay_no}).done(function(customerReturn){
if(customerReturn.length > 0){
var device_id = customerReturn[0].attributes.device_id.toString();
req.ibmpush.sendNotificationByDeviceIds(message, [device_id], null).then(function(response){
res.json({success : true, message : 'Send notification to patient with device_id:' +device_id+ ' successful ' });
},function(err){
res.json(err);
});
}else{
}
}, function(err){
res.json(err);
})
}
:私はibmpushを宣言しました= require( 'ibmpush')
私にあなたの考えを教えてください。 ありがとう
は、そんなにジョーをありがとう –