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:
Could someone help me? Kind regards!
The code is correct. Problem was in code before that script. I'm sorry for unnecessary question :(