我有一个使用Parse.com进行推送通知的应用。这些是通过Cloud Code触发的,但这些通知在触发时会进入静音状态,没有声音,没有任何振动。它出了什么问题?
pushQuery.equalTo('channels', newUserId);
if (anonymous2 == "false") {
Parse.Push.send({
where: pushQuery, // Set our Installation query
data: {
alert: firstName2 + " " + lastName2 + " " + "just added a prayer request."
}
}, {
success: function() {
// Push was successful
},
error: function(error) {
throw "Got an error " + error.code + " : " + error.message;
}
});
}