push 알람도중 막히는게 있어서 문의드립니다.
마이크로소프트에서 아래와 같은 스크립트소스를 그대로 복사하여 넣었는데
push에서 빨간 밑줄이 그려지면서 에러가 뜹니다. 어떻게 처리를 해야하는 걸까요?ㅜ
function insert(item, user, request) { request.execute(); // Set timeout to delay the notification, to provide time for the // app to be closed on the device to demonstrate toast notifications setTimeout(function() { push.apns.send(item.deviceToken, { alert: "Toast: " + item.text, payload: { inAppMessage: "Hey, a new item arrived: '" + item.text + "'" } }); }, 2500); }