Comparing version 1.0.2 to 1.0.3
1.0.3 / 2013-10-26 | ||
================== | ||
* Merge pull request #2 from nrcmedia/content-available-support | ||
* Added support for content-available flag | ||
1.0.2 / 2013-04-16 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -11,3 +11,3 @@ /*! | ||
exports.version = '1.0.2'; | ||
exports.version = '1.0.3'; | ||
@@ -14,0 +14,0 @@ /*! |
@@ -81,2 +81,3 @@ /*! | ||
if (opts.aps.sound) this.sound(opts.aps.sound); | ||
if (opts.aps['content-available']) this.contentAvailable(opts.aps['content-available']); | ||
@@ -323,2 +324,29 @@ // import alert | ||
/** | ||
* ### .contentAvailable (bool) | ||
* | ||
* Set the content-available flag for content download | ||
* push notifications | ||
* | ||
* ```js | ||
* msg.contentAvailable(true); | ||
* ``` | ||
* | ||
* @param {Bool} sets content-available flag to 1 if true | ||
* @returns {this} for chaining | ||
* @api public | ||
* @name contentAvailable | ||
*/ | ||
Message.prototype.contentAvailable = function (contentAvailable) { | ||
if (contentAvailable) { | ||
this.settings['content-available'] = 1; | ||
} else { | ||
this.settings['content-available'] = undefined; | ||
} | ||
return this; | ||
}; | ||
/*! | ||
@@ -325,0 +353,0 @@ * .serialize () |
{ | ||
"name": "apnagent" | ||
, "version": "1.0.2" | ||
, "version": "1.0.3" | ||
, "description": "Node adapter for Apple Push Notification (APN) service." | ||
@@ -5,0 +5,0 @@ , "author": "Jake Luer <jake@qualiancy.com> (http://qualiancy.com)" |
66259
2193