-
Notifications
You must be signed in to change notification settings - Fork 677
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
Support custom http headers (for apns-priority and iOS 13) #74
Comments
This project is not doing a NWPusher/Classes/NWNotification.m Lines 194 to 212 in c91a8e0
@leonardvandriel Could you explain how do you know the identifier 5 is related with the priority? |
Ok, after some googling, I found out that this project is using the Binary Provider API a legacy binary interface which Apple wants to deprecate in prol of the HTTP/2-based API:
There's a table with all the table possible identifier's called Table A-3. Unfortunately, there's no
|
Not a fit.
Thanks,
Magela Moore
Mobile Engineering Manager/Sr. Mobile Software Architect/Engineer
~ Sent from my Mobile Device
…------ Original Message ------
From: Ricardo Pereira
To: noodlewerk/NWPusher
Cc: Subscribed
Sent: October 25, 2019 at 6:47 AM
Subject: Re: [noodlewerk/NWPusher] Support custom http headers (for apns-priority and iOS 13) (#74)
This project is not doing a POST request like the Apple examples are doing, it's using instead a Realtime socket based approach (from what I understand from the code). So, there are no HTTP headers. For example, the priority is being set in the data buffer: https://github.com/noodlewerk/NWPusher/blob/c91a8e08c43c662b08b9f0d816f107bb3b2470a4/Classes/NWNotification.m#L194-L212
@leonardvandriel (https://github.com/leonardvandriel) Could you explain how do you know the identifier 5 is related with the priority?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub (#74?email_source=notifications&email_token=AEYSESBBQQOODQHJV46RGZDQQLFFXA5CNFSM4I35EVUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECH7FDI#issuecomment-546304653), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AEYSESA2IM6QEV45K5NE5WTQQLFFXANCNFSM4I35EVUA).
|
It's official https://developer.apple.com/news/?id=11042019a
|
iOS 13 requires the
apns-priority
header to be set to 5 when sending background (content-available = 1
) notifications. If the header is left off, it defaults to 10 and the push fails. So currently whenever you send a background notification with Pusher in iOS 13, it fails.Rather than having the app set this header automatically, I'd prefer to be able to add headers manually so that we can test with other APNS header types.
The text was updated successfully, but these errors were encountered: