node.js - Phonegap Pushnotification + node-gcm: group notifications -


i have in node app:

var sender = new gcm.sender("xpto"); var registrationids = ["whatever"]; ... var message = new gcm.message({     data: {         avatar: body_data.avatar,         message: body_data.message     } });  sender.send(message, registrationids, 4, function (err, result) { console.log("success"); }); 

it works fine, notification arrives , goes tray if app if not opened. if send new notification same registrationid, old notification "updated" (or removed) , new 1 shows.

if add random integer parameter notid

message.adddata("notid", parseint(math.random() * 25)); 

the notifications kept in tray, tray start show multiple notifications. there way group notifications?

android devices group same kind of notifications. if set set different collapsekey each kind of notification, won't grouped others. can have @ 4 different collapsekey @ same time visible user in tray.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -