node-gcm
node-gcm copied to clipboard
Move the interface closer to the actual content of GCM notifications
Replace collapseKey with collapse_key, etc.
It would also be really cool if we could make it possible to send pre-built messages, for when the user knows what she is doing:
var gcm = require("gcm");
var sender = new gcm.Sender("<api key>");
sender.send({
data: {
hello: "world"
}
}, "<registration id>", callback);
@hypesystem Would we provide the old keys as aliases for backward compatibility?
This PR has been marked with the v1 milestone (https://github.com/ToothlessGear/node-gcm/milestones/v1), becasue it contains breaking changes.
I use it to collect ideas for breaking changes that would make for a nicer interface. I don't think backwards compatibility should be a concern when we move to 1.0.0 --- learning from the experiences of pre-1.0 should be the prime concern :smile:
Cool. I definitely agree with making it possible to pass in properties the same way as with GCM (collapse_key for example)