-
Notifications
You must be signed in to change notification settings - Fork 215
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
Add support for new apns-push-type header #226
Conversation
Codecov Report
@@ Coverage Diff @@
## master #226 +/- ##
======================================
Coverage 87.5% 87.5%
======================================
Files 7 7
Lines 216 216
======================================
Hits 189 189
Misses 27 27
Continue to review full report at Codecov.
|
hi @essen ! thanks for your contribution to |
Probably. |
1dfc8cf
to
084c944
Compare
Let's see what it says. I've changed a little how the default is handled for the new header, simpler like this. |
As documented here: https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns The header is required on iOS 13+ and a default value had to be chosen. I set it to "alert" as I think it is the most common. Indeed the documentation about "background" said those should be sent two to three times per hour.
084c944
to
5ba10b8
Compare
All good. |
Merged! We are going to create a new release with this change, thanks for your contribution! |
Perfect! Thanks a lot! |
As documented here:
https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns
The header is required on iOS 13+ and a default value had
to be chosen. I set it to "alert" as I think it is the
most common. Indeed the documentation about "background"
said those should be sent two to three times per hour.
Please review but note that I do not have an Apple device personally and this has not been extensively tested yet. Still it's just a header so it's probably good enough.