jazzband / django-push-notifications

Send push notifications to mobile devices through GCM or APNS in Django.
MIT License
2.28k stars 618 forks source link

[Question] HTTP/2-based APNs provider API and binary protocol #601

Closed nileshprasad137 closed 3 years ago

nileshprasad137 commented 3 years ago

Hi, I am not exactly sure if this is the right platform to raise this question but any help would be great.

Got a mail saying the below,

The HTTP/2‑based Apple Push Notification service (APNs) provider API lets you take advantage of great features, such as authentication with a JSON Web Token, improved error messaging, and per‑notification feedback. If you still send push notifications with the legacy binary protocol, make sure to upgrade to the APNs provider API as soon as possible. APNs will no longer support the legacy binary protocol after March 31, 2021.

I saw that this library uses apns2 for sending push notifications on iOS and that uses HTTP/2 protocol for sending notifications. So, this library can continue to be used for sending iOS notifications right?

Also, I am not clear of the meaning of legacy binary protocol. If anyone can shed light on it, that will be really useful.

karanasthana commented 3 years ago

Hi, I received the same mail from Apple.

Just wanted to confirm if we are covering the HTTP/2 requirement in this library?

nileshprasad137 commented 3 years ago

@sevdog, @jamaalscarlett Can anyone confirm on the above?

sevdog commented 3 years ago

For what I understand this should not be an issue nor for this package nor for apns2 (which is used to send Apple-Push-Notifications).

Apple is dismantling the legacy binary protocol (which was announced on October 9 2020) in favor of the HTTP one. However since apns2 implements the latter this would not be an issue here since it already uses the preferred protocol.

For the record: here is the specification of the legacy binary protocol for APNS.

nileshprasad137 commented 3 years ago

Thanks! I'll close this.