New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using ErrorResponse class for handling specific errors #95
Comments
I'm wondering the same thing. My guess is that it should be used in pusher.rb after writing to the connection. The thing is, I don't think the response from Apple is synchronous. The docs are a bit confusing, because the table suggests that 0 is returned when no error occurs, but elsewhere it says:
And if there is an error response, Apple hangs up.
It looks like Grocer will retry 3 times by default (see connection.rb with_connection), but it doesn't appear to read off the connection to determine the ErrorResponse. |
For more information: http://redth.codes/the-problem-with-apples-push-notification-ser/ |
You are correct - we have an None of the original authors currently have available time to undertake the changes, but would be happy to work with any individuals who wish to. |
I found this class but can't find it using somewhere in the code. The reason I'm asking is Apple recommendation:
Note: The Apple Push Notification service (APNs) provides feedback to your server which may require specific actions. For example, if APNs tells you that a push token is invalid, remove that device and its registrations from your server
This is what that class is responsible for - tell me exactly what error was happened, so I can decide should I destroy registration of device or not.
Please, make this moment clear for me. Am I missed something or there is a way to use this class somehow?
The text was updated successfully, but these errors were encountered: