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

honoring retry-after response header? #171

Open
bulletblp4 opened this issue Jul 9, 2020 · 0 comments
Open

honoring retry-after response header? #171

bulletblp4 opened this issue Jul 9, 2020 · 0 comments

Comments

@bulletblp4
Copy link

Looking at the code it seems like the public method call Push / PushWithContext doesn't return response headers such as retry-after also seems like internally (within the lib) we aren't handling the retry cases either (for transient or any other errors).

Are we completely overlooking retry-after sent by apple in this lib or is it that apple never sends that header and it not useful or is there any other way I can access that header currently seems like I can only access these values https://github.com/sideshow/apns2/blob/master/response.go#L111-L132.

using github.com/sideshow/apns2 v0.20.0

  1. What version of Go are you using? go version
    go version go1.13.1 darwin/amd64

  2. What OS and processor architecture are you using? go env - Seems not related to the question hence skipping this for now

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