I recently received the mail below from Apple
We noticed that your apps may be communicating with the Apple Push Notification service through the binary protocol. Since this is a legacy protocol, we recommend updating to the enhanced HTTP/2-based API as soon as possible. You’ll be able to take advantage of great new features, such as authentication with a JSON Web Token, improved error messaging, and per-notification feedback.
I have no idea what to do : 1 - do I have to modify something in my app and how ? 2 - do I have to modify something on my server (certainely) but how ?
Any help welcome. Have a nice day.
Firstly I recommend you to read official documentation about benefits of new http/2 based apns service. Then if you want to use newly introduced features you can change your server-side implementation to be able to send notifications over new API. But, according to feature that you want to use, of course there might be some changes on your client code.
Otherwise there is no need to change anything on both side for now until Apple decide to close the legacy api. As you can see they call it legacy, It's better to prepare yourself for the stressful time.
If we come to how you can use new API on server-side, I recommend you to read these two page carefully:
Setting Up a Remote Notification Server
Sending Notification Requests to APNs
Or, depends on your programming language, but maybe you can find some libraries which make it easy to use by using google.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With