diff --git a/lib/notification/index.js b/lib/notification/index.js index 4e136bef..8abd0b41 100644 --- a/lib/notification/index.js +++ b/lib/notification/index.js @@ -9,7 +9,7 @@ function Notification (payload) { this.compiled = false; this.aps = {}; - this.expiry = 0; + this.expiry = -1; this.priority = 10; if (payload) { @@ -46,7 +46,7 @@ Notification.prototype.headers = function headers() { headers["apns-id"] = this.id; } - if (this.expiry > 0) { + if (this.expiry >= 0) { headers["apns-expiration"] = this.expiry; }