javascript - How to send Push Notifications with Parse.com Cloudcode -
i want send push notification cloudcode on parse.com.
the push notification should sent android devices subscribed specific channel , trigger service.
all need installation query, along accompanying push. example:
var pushquery = new parse.query(parse.installation); pushquery.containedin("user", userlist); parse.push.send({ where: pushquery, data: { alert: "your push message here!" } }, { success: function() { response.success("pushed"); }, error: function(error) { reponse.error("didn't push"); } });
that installation query can query based on channel, , there other specifications can make push query, given in documentation:
Comments
Post a Comment