Skip to content

make sure we always send apns-expiration as integer number #108

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

Merged
merged 2 commits into from
Feb 13, 2018
Merged

Conversation

mman
Copy link
Contributor

@mman mman commented Feb 9, 2018

This pull request quickly addresses the issue where apns-expiration header that gets sent to the Apple Push Notification Service gets wrongly computed into a floating point number thus generating push error 400 BadExpirationDate reported here parse-community/parse-server#4558.

I have tested in production that this fix gets rid of the error and pushes are going through.

I have not tested or reviewed the logic of computing correct push expiration date from push date.

@flovilmart
Copy link
Contributor

@mman, it looks like the tests need an update too!

@codecov
Copy link

codecov bot commented Feb 9, 2018

Codecov Report

Merging #108 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #108   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           5      5           
  Lines         256    256           
=====================================
  Hits          256    256
Impacted Files Coverage Δ
src/APNS.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9ea512f...2b611a5. Read the comment docs.

@mman
Copy link
Contributor Author

mman commented Feb 9, 2018

@flovilmart tests updated and passing.

@mman mman changed the title make sure we always send integer as apns-expiration make sure we always send apns-expiration as integer number Feb 12, 2018
@flovilmart
Copy link
Contributor

Thanks for the PR, i’ll Plan out a release soon

@flovilmart flovilmart merged commit 7c2e028 into parse-community:master Feb 13, 2018
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

Successfully merging this pull request may close these issues.

2 participants