Last active
August 28, 2015 11:42
-
-
Save anvarazizov/9548306b6e4ba5deea04 to your computer and use it in GitHub Desktop.
Parse job example for sending push notification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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