1 Answer
<script type="text/javascript"> function PushNotification() { var sdk = new Cocoafish('v4B7ZxZEj8ekkbJevfGLKME9lvc64xDT'); // app key var data = { channel: 'alert', to_ids: '5006849a00204417fb0f531d', payload: 'Push Notification Test msg' }; debugger sdk.sendRequest('push_notification/notify.json', 'POST', data, callback); } function callback(data) { debugger if (data) { if (data.meta) { var meta = data.meta; alert("Status " + meta.status + " Code " + meta.code); if (meta.status == 'ok' && meta.code == 200 && meta.method_name == 'Notify') { alert("Notification Send" + meta.status); } } } } </script>its a aspx file, dot net server
Your Answer
Think you can help? Login to answer this question!