Skip to content

Notification cannot be created in "finished" state #240

@hypesystem

Description

@hypesystem

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'}
});

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions