Skip to content

Instantly share code, notes, and snippets.

@anvarazizov
Last active August 28, 2015 11:42
Show Gist options
  • Save anvarazizov/9548306b6e4ba5deea04 to your computer and use it in GitHub Desktop.
Save anvarazizov/9548306b6e4ba5deea04 to your computer and use it in GitHub Desktop.
Parse job example for sending push notification
Parse.Cloud.job("sendPush", function(request, status) {
Parse.Push.send({
channels: ["global"],
data:
{
"alert": "Update process has started",
"content-available":"1",
}
},
{
success: function() {
console.log("push was successful");
},
error: function(error) {
console.log(error);
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment