lib/apns_simple/client.rb in apns_simple-3.0.0 vs lib/apns_simple/client.rb in apns_simple-3.1.0
- old
+ new
@@ -10,19 +10,20 @@
DEFAULT_CERTIFICATE_PASSWORD = ''
DEFAULT_GATEWAY_URI = 'apn://gateway.push.apple.com:2195'
ERROR_BYTES_COUNT = 6
COMMAND = 8
+ INVALID_TOKEN_CODE = 8
CODES = {
0 => 'No errors encountered',
1 => 'Processing error',
2 => 'Missing device token',
3 => 'Missing topic',
4 => 'Missing payload',
5 => 'Invalid token size',
6 => 'Invalid topic size',
7 => 'Invalid payload size',
- 8 => 'Invalid token',
+ INVALID_TOKEN_CODE => 'Invalid token',
10 => 'Shutdown',
255 => 'Unknown error'
}
TIMEOUT = 5 # In seconds
\ No newline at end of file