I'm using Azure Notification Hub as my service to send push notification to mobile devices.
I developed a simple node server to register and send push notification.
I have already done implementing push notification and mobile clients can now receive push from my server but specifically for SANDBOX and PRODUCTION.
Is there a way that my server can send push notification in both SANDBOX and PRODUCTION (together) in one request?
This is my code for sending push notification in SANDBOX/PRODUCTION
var payLoad = {
aps: {
alert: data
}
};
azure.apns.send(tag, payLoad, function (err, reps){
if(!err){
cb({error: false});
}else{
cb({error: true, error_log: err});
}
})