It would be nice if it was possible to configure the notification through an options object, instead of having to create it, and then set several attributes. Example of desired code (based on code from the README):
var note = new apn.Notification({
expiry: Math.floor(Date.now() / 1000) + 3600,
badge: 3,
sound: "ping.aiff",
alert: "\uD83D\uDCE7 \u2709 You have a new message",
payload: {'messageFrom': 'Caroline'}
});
It would be nice if it was possible to configure the notification through an options object, instead of having to create it, and then set several attributes. Example of desired code (based on code from the README):