0
我是新手,以推送通知,我已经做了我从谷歌上搜索,它工作正常取出的参考代码的一部分,但我的查询是:GCM推送通知的NodeJS
- 发送推送通知到组的人(使用数组)
- 并且在该数组中有至少一个错误的gcm-id的机会
- 如果存在错误的gcm-id,则会填充“未注册”或“MisplacingId”单独发送)
- 现在,gcm-id在一个数组中,然后push将发送给re主要的人还是会阻止在那里呢?
这里是我的代码:
var GCM = require('gcm').GCM;
var apiKey = 'xyz';
var gcm = new GCM('apiKey');
var message = {
registration_id: ['x','y'],
collapse_key: 'Hello',
priority: 'high',
contentAvailable: true,
delayWhileIdle: true,
timeToLive: 3,
};
gcm.send(message, function(err, messageId){
if (err) {
console.log("Something has gone wrong!");
console.log(err);
} else {
console.log("Sent with message ID: ", messageId);
}
});
,并请告诉我有任何LIMT(gcmid的数)?一举推动?