The code is correct. Problem was in code before that script. I'm sorry for unnecessary question :(
Azure Mobile Services and Push Notification for Windows Phone 8
-
14-01-2022 - |
Question
I've got some issues with this code (part of scheduled job in Azure Mobile Services):
var channelTable = tables.getTable('PushChannels');
channelTable.read({
success: function(channels) {
channels.forEach(function(channel) {
push.mpns.sendToast(channel.PushChannelUri, {
text1: "AppName:",
text2: "Update!"
}, {
success: function(pushResponse) {
console.log("Push sent");
},
error: function(error) {
console.error("Error!");
}
});
});
}
});
My problems are:
- Push notifications are not arriving device
- console.logs are not displaying in "Logs" tab
Could someone help me? Kind regards!
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow