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!

Was it helpful?

Solution

The code is correct. Problem was in code before that script. I'm sorry for unnecessary question :(

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top