Start a new topic

500 internal error sending push messages

when am trying to send a push messages am getting 500 internal error...



I have create collection and saving the row after saving the data into collection , i want to send push messages to my users.



function onPostSave(request, response, modules){

var push = modules.push, collectionAccess = modules.collectionAccess;

collectionAccess.collection('user').find("username:usha", function (err , userColl) {

if (err) {



} else {

userColl.forEach(function (user) {



push.send(user, "People who are named are awesome!");

return response.complete(201);



});

}

}

);

}

1 Comment

What SDK are you using-- did you configure it via the guide?
Login or Signup to post a comment