Граф коммитов

226 Коммитов

Автор SHA1 Сообщение Дата
Andrew Naylor 11377200e5 Merge pull request #115 from sandfox/patch-1
Minor examples tweak for friendlier output
2013-09-18 14:10:07 -07:00
James Butler f175c4ee25 update token string representation to be human friendly 2013-07-30 16:09:07 +01:00
James Butler c1e2073014 make string representation of token more human readable (and expected) 2013-07-30 16:05:47 +01:00
Andrew Naylor 7dc729db9d 1.3.8 2013-07-21 23:39:36 +01:00
Andrew Naylor 8096574a2b Raise an error with all notifications for module initialisation error. 2013-07-21 00:34:33 +01:00
Andrew Naylor 696e8dce6c Notifications have a configurable number of retries. 2013-07-21 00:32:42 +01:00
Andrew Naylor f47993e3a1 v1.3.7 2013-07-20 12:38:13 +01:00
Andrew Naylor 423850943f Updated docs to correct `batchFeedback` description.
Also fixed a missing URL link.
2013-07-20 12:36:24 +01:00
Andrew Naylor c690e752c0 Merge pull request #114 from hasankhan/master
Fire the feedback event even if there is no feedback, in batch mode.

Informative, to let the consumer know that the operation completed successfully without and feedback to process.
2013-07-20 04:26:06 -07:00
Hasan Khan d5e9484a72 Fire the feedback event even if there is no feedback to let the consumer know that operation completed without feedback. 2013-07-19 11:17:31 -07:00
Andrew Naylor 5175a34ec4 1.3.6 2013-07-11 20:42:17 +01:00
Andrew Naylor 91230c1466 Changelog 2013-07-11 20:42:12 +01:00
Andrew Naylor 3fb447b2e5 Resend a notification if error occurs during transmission
If the socket is "busy", i.e. hasn't drained, when an error occurs then we prepare the last notification to be resent. This should address issue #100. There's no way to stop the timeouts, but this should make the behaviour more consistent.
2013-07-11 20:39:34 +01:00
Andrew Naylor 7d25b16026 Fixes #90 - Added some more error checking for invalid device tokens.
Specifically when a Device object is not successfully initialised it should throw an error and this is caught and raises an error appropriately.
2013-07-11 20:33:25 +01:00
Andrew Naylor d6b7720cf1 v1.3.5 2013-07-01 01:48:49 +01:00
Andrew Naylor b7e9fec501 Added some initial examples. 2013-07-01 01:48:49 +01:00
Andrew Naylor ba30c8f07a New Notification configuration methods and they're now chain able. 2013-07-01 01:48:49 +01:00
Andrew Naylor 0cf06aa40e setCacheLength method. 2013-07-01 01:48:49 +01:00
Andrew Naylor e81cf5b7bc Improved doc.
Added links to Google group and moved some doc to more sensible places, out of read me.
2013-07-01 01:48:49 +01:00
Andrew Naylor 59ec4ba9cf Fixed feedback error handling.
Only emit `error` in the event of an unrecoverable error (Being unable to load certificates/keys from disk) In other instances emit `feedbackError`
2013-07-01 01:44:49 +01:00
Andrew Naylor 9ad22df77a Lint. 2013-07-01 01:44:49 +01:00
Andrew Naylor b5dc6aa98e Minor logic defect in error handling. 2013-07-01 01:44:49 +01:00
Andrew Naylor 87b6de7826 Merge pull request #105 from steveluscher/patch-1
Updated link to the payload documentation
2013-06-29 04:45:13 -07:00
Steven Luscher 18c4d3d4dd Updated link to the payload documentation 2013-06-10 00:00:28 -06:00
Andrew Naylor 9d46022b69 1.3.4 2013-05-25 13:05:28 +01:00
Andrew Naylor cdeb522064 Ignore an EPIPE thrown after a transmission error.
This is a harmless error and nothing seems to suppress it, so we'll ignore it in the right circumstances.
2013-05-25 13:03:04 +01:00
Andrew Naylor 2a08286fe2 Merge branch 'refs/heads/issue101-hotfix' into develop 2013-05-25 13:01:23 +01:00
Andrew Naylor d878bf22e2 Don't blindly reject the deferredConnection when an error occurs
If a new connection is established before the error from the previous connection is thrown then a deferredConnection will exist and it will happily reject it, upsetting the new connection flow. In fact we should check that the error occurred on the in progress socket (`this.socket`) before we destroy that.

Otherwise just handle it as a regular socket error.
2013-05-25 12:58:40 +01:00
Andrew Naylor 0bc8130c11 Added better trace for sockets
Assign each socket an ID which can be used to track socket management problems.
2013-05-25 12:55:55 +01:00
Andrew Naylor 8deaae8c0e Added new error code, 10: apnsShutdown.
Table 5-1: http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/CommunicatingWIthAPS.html#//apple_ref/doc/uid/TP40008194-CH101-SW4
2013-05-24 08:20:48 +01:00
Andrew Naylor 6c9bbf9bba Updated "Thanks to" with Craig Hockenberry. 2013-04-27 09:53:22 +01:00
Andrew Naylor 4ce08df129 1.3.3 2013-04-27 01:24:24 +01:00
Andrew Naylor 72df8050c8 Ensure `Notification#trim` cleanly trims Unicode characters
Also improve documentation around Unicode characters.

Closes #98
2013-04-27 01:22:38 +01:00
Andrew Naylor 21578b0674 Fixed pre-push notification length check. 2013-04-27 00:35:08 +01:00
Andrew Naylor 116218a356 1.3.2 2013-04-22 23:05:56 +01:00
Andrew Naylor 27ca322d81 Switch to EventEmitter#listeners().length for backward compatibility.
Fixes #97
2013-04-22 23:05:43 +01:00
Andrew Naylor c68c8bc673 v1.3.1 Release 2013-04-22 11:22:06 +02:00
Andrew Naylor c781053303 Updated for v1.3.1 2013-04-22 11:21:45 +02:00
Andrew Naylor 6c25c7e8e4 Warn about lack of `feedback` listener
If Feedback has been initialised but no listener has been added before nextTick then raise a debug warning as data may be lost.
2013-04-22 11:20:40 +02:00
Andrew Naylor bd5651d5ea Merge pull request #96 from futurice/master
`feedback` option in configuration is now optional in favor of an event listener on `'feedback'` however I did not remove a check that a `feedback` function has been specified.
2013-04-22 02:11:34 -07:00
Juho Vähä-Herttua 1d49d8b510 Feedback function is not necessary any more.
The v1.3.0 crashes if feedback function is not defiend, even though the comments
suggest it should not be used.
2013-04-22 11:40:08 +03:00
Andrew Naylor c64c936ee8 v1.3.0 Release. 2013-04-21 01:29:04 +01:00
Andrew Naylor f5f2c894e6 Added "resources" to Readme. 2013-04-21 01:28:48 +01:00
Andrew Naylor 037f641438 Added documentation 2013-04-21 01:28:34 +01:00
Andrew Naylor 4476bae2c8 Updated Readme to be shorter and more readable.
Moved documentation to separate files.
2013-04-20 00:32:12 +01:00
Andrew Naylor b42ce93193 Moved change log out of readme and added v1.3.0 2013-04-20 00:31:33 +01:00
Andrew Naylor d76046405b Fix a defect with cache auto adjustment. 2013-04-16 19:22:46 +01:00
Andrew Naylor c66b66fa30 Fixed a problem with promise being null 2013-04-15 22:54:25 +01:00
Andrew Naylor 2924f5dc86 Added a note to myself about a strange decision with the socket setup. 2013-04-13 22:01:26 +01:00
Andrew Naylor ae3642f84c Un-deprecated the Device object.
It turns out there are some uses for it after all, and there isn't a penalty to keeping it around.
2013-04-13 21:52:16 +01:00