immobiliare / ApnsPHP

ApnsPHP: Apple Push Notification & Feedback Provider
BSD 3-Clause "New" or "Revised" License
1.43k stars 454 forks source link

Legacy binary only? #173

Open oisact opened 3 years ago

oisact commented 3 years ago

It isn't clear in the documentation for this library - is this library using the binary APNS protocol only, or does it also support the newer JSON method? The binary interface to APNS is being discontinued March 31, 2021, which is less than 2 months from the time I'm posting this. Thus if this library is binary-only, it will cease functioning in less than 2 months.

The readme news makes a somewhat cryptic announcement from 2016 that there is an alpha version supporting HTTP/2, which I presume is the new JSON protocol. Is that now merged in the main branch, or is that still a totally separate alpha? It does not sound like a drop-in replacement, at last as far as the APNS certificates go.

https://developer.apple.com/news/?id=c88acm2b

Jacketbg commented 3 years ago

Unfortunately the latest version is binary only. You can get the v2.0.0-alpha tag that supports http2 and it works, but not well enough. It's definitely not working with rich notifications as it's missing essential methods like setMutableContent(). Even with setCustomProperty('mutable-content', 1) I can't get rich notifications to run through http2. I really hope someone picks this up and updates the latest master to work with http2, otherwise this project will simply die after March 31 2021.

SMillerDev commented 3 years ago

Something like: https://github.com/M2mobi/ApnsPHP ? 😄