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

Add apns-push-type header #74

Merged
merged 3 commits into from
Apr 17, 2024
Merged

Conversation

gferon
Copy link
Contributor

@gferon gferon commented Oct 19, 2023

Set the apns-push-type header (mostly to support background notifications, but I mapped all the possible values).

Due Dilligence

  • Breaking change
  • Requires a documentation update
  • Requires a e2e/integration test update

@r10s
Copy link

r10s commented Mar 27, 2024

great to find this PR, very nice! seems we're requiring exactly that for deltachat/notifiers#22

@gibix
Copy link

gibix commented Apr 4, 2024

Yep, just tested, works as expected

@r10s
Copy link

r10s commented Apr 4, 2024

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?

Copy link

@gibix gibix left a 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

Copy link
Member

@chris13524 chris13524 left a 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 {
Copy link
Member

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.

@chris13524 chris13524 self-assigned this Apr 16, 2024
@chris13524 chris13524 merged commit bcef811 into reown-com:master Apr 17, 2024
threema-donat pushed a commit to threema-donat/a2 that referenced this pull request Apr 23, 2024
* Add apns-push-type header

* Add unit test and re-export PushType

* Derive PartialEq and Eq
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.

4 participants