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

Use a non-zero default expiration time in SimpleApnsPushNotification #593

Merged
merged 1 commit into from
Apr 8, 2018

Conversation

jchambers
Copy link
Owner

As discussed in #566, defaulting to immediate expiration for push notifications may not be the best idea, and may contribute to lower-than-expected success rates for callers who don't specify an expiration timestamp. At the same time, we don't want to totally change the behavioral contract of the ApnsPushNotification in the interest of preserving backward compatibility.

As a compromise, this pull request changes the behavior of the "use default expiration time" constructor in SimpleApnsPushNotification. Instead of passing a null expiration time (which still means "expire immediately"), the default constructor will create a push notification that expires in 24 hours.

I am, of course, open to feedback on both the approach and default expiration period.

This closes #566.

@jchambers jchambers added this to the v0.13.0 milestone Mar 31, 2018
@jchambers jchambers force-pushed the nonzero_default_expiration branch from 5442502 to 6cb1299 Compare March 31, 2018 14:17
@jchambers jchambers force-pushed the nonzero_default_expiration branch from 6cb1299 to 57876e3 Compare April 8, 2018 18:18
@jchambers jchambers merged commit aab6cfb into master Apr 8, 2018
@jchambers jchambers deleted the nonzero_default_expiration branch April 8, 2018 18:23
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.

No way to obtain default apns-expiration behavior
1 participant