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
Post a Comment