javascript - can't push notifications to ios using windowsazure -


im trying use script in mobile services push notifications ios mobile keep getting script error in logs although when adding record mobile being added notification not send,can me error? script in mobile services tab in azure of ios:

 function insert(item, user, request) {  request.execute();   // set timeout delay notification, provide time     // app closed on device demonstrate toast notifications     settimeout(function() {     push.apns.send(item.devicetoken, {         alert: "toast: " + item.text,         payload: {             inappmessage: "hey, new item arrived: '" + item.text + "'"         }     },   function (error) { if (!error) {   alert:"msg sent successfully" } });  }, 2500); } 


Comments

Popular posts from this blog

android - Hide only the Action bar on Scroll not action bar tabs -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -