-
Notifications
You must be signed in to change notification settings - Fork 53
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 apns-push-type header #74
Conversation
great to find this PR, very nice! seems we're requiring exactly that for deltachat/notifiers#22 |
Yep, just tested, works as expected |
we're using this PR also for https://github.com/deltachat/notifiers in practise meanwhile, works like a charm! is there sth. we can help that this PR gets merged? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested the code and works perfectly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Sorry about the delay folks, this repo wasn't being watched but now it is. This addition looks good to me!
/// this header is required or optional. | ||
/// | ||
/// see https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns#4294485 | ||
pub enum PushType { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like complication
is variant missing, but this may have been added in a more recent version.
* Add apns-push-type header * Add unit test and re-export PushType * Derive PartialEq and Eq
Set the
apns-push-type
header (mostly to support background notifications, but I mapped all the possible values).Due Dilligence