Click here to Skip to main content
15,867,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My Push notification code for toast notification is not running when run through scheduler in azure. my code is

function EWSReminder() {
             push.wns.sendToastText01("https://sin.notify.windows.com/?          token=Ysdfdhjkdjksj%2fAScjFHiwrUbS6y%2bvumj9sKUqhklsdfjgfdslcvl;dklslkskdlsdl;9XD58CMJebd04EknQY0Hgaxed6%uirutiuritubW%2fRcpdvapAYlMcnWLE360%3d", {
                  text1: "Sample toast from sample insert"
               }, {
               success: function(pushResponse) {
                   console.log("Sent push:", pushResponse);
               }
               );
   }


I get this error

Error in script '/scheduler/EWSReminder.js'. Error: The options.client_id and options.client_secret must be specified as strings or the WNS_CLIENT_ID and WNS_CLIENT_ID environment variables must be set.
   [external code]
   at EWSReminder (</scheduler/EWSReminder.js>:2:16)
   at </scheduler/EWSReminder.js>:1:13
   [external code]


I can't figure out what the problem is pls help. I have applied code of all the microsoft samples available all have the same code, but none is working for me.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900