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

Legacy binary only? #173

Open
oisact opened this issue Feb 6, 2021 · 2 comments
Open

Legacy binary only? #173

oisact opened this issue Feb 6, 2021 · 2 comments

Comments

@oisact
Copy link

oisact commented Feb 6, 2021

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
Copy link

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
Copy link

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

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

No branches or pull requests

3 participants