anachronistic/apns — pull request #27 by tstranex (2014-10-01 07:54:43+00:00)
Title: Validate the device token length.

If a token is provided with the wrong length, it will cause the an invalid frame to be sent on the wire since the device token frame length is fixed to 32 bytes. It's better to catch the error early instead of transmitting something invalid to the APNS server.