Skip to content
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

GCM should return the headers on build_response method #59

Open
Tali-Oz opened this issue Feb 16, 2015 · 0 comments
Open

GCM should return the headers on build_response method #59

Tali-Oz opened this issue Feb 16, 2015 · 0 comments

Comments

@Tali-Oz
Copy link

Tali-Oz commented Feb 16, 2015

GCM requires to use the 'Retry-After' header in case of error,
and the gem return the headers only when the response code is 200

In addition: the gem support only 500 and 503 response code
and in case the response code is 5xx (like 502..) - the gem return nil instead of the response.

see GCM documentation:
http://developer.android.com/google/gcm/server-ref.html
"5xx Errors in the 500-599 range (such as 500 or 503) indicate that there was an internal error in the GCM server while trying to process the request, or that the server is temporarily unavailable (for example, because of timeouts). Sender must retry later, honoring any Retry-After header included in the response..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant