jpoz/APNS — Issue #8: Feedback Service Returning Weird Response?
Author: pcalcado
Created: 2011-12-14 17:47:10+00:00
State: open

Hi,

I have a fairly large iOS user base, feedback service returns plenty of stuff all the time.

This script, though:

```ruby
#!/usr/bin/env ruby

require 'rubygems'
require 'apns'
require 'socket'
require 'openssl'
require 'base64'

APNS.pem = 'production.pem'
APNS.host = 'gateway.push.apple.com'

APNS.feedback.each {|e| puts e}
````

Returns results like this:

````
feedback.push.apple.com
1982-03-27 11:27:14 +0100
9f389bede247500458c16d80de8af8ef8d05af28c313889b13eaecd77305fc8ad8d76c672df29a6a1ed0be63a89947895c6bce462d803999214e8739c31537e5cf322586136b
```

I've got all sort of crazy dates, including:
````
1982-03-27 11:27:13 +0100
2049-10-21 12:29:29 +0200
2009-04-13 11:04:07 +0200
2037-07-24 23:24:17 +0200
```

And the token never matches any of the tokens I have in my database. Notice that I can use the configuration above to send push notifications via APNS without any problem.

Am I doing something wrong here or there is a problem?