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

Remove APNSv1 support #568

Open
benlangfeld opened this issue Sep 28, 2020 · 10 comments · May be fixed by #614
Open

Remove APNSv1 support #568

benlangfeld opened this issue Sep 28, 2020 · 10 comments · May be fixed by #614
Assignees
Labels
Milestone

Comments

@benlangfeld
Copy link
Collaborator

The APNS binary interface will cease to function next month. We should remove it from rpush. I propose then renaming APNS2 in rpush to simply APNS to take its place.

Any objections @aried3r ?

@aried3r
Copy link
Member

aried3r commented Sep 28, 2020

If Apple follows through with this and doesn't extend the deadline I don't mind getting rid of unused code. This is definitely a 6.0.0 change, since it will be breaking people's code.

@benlangfeld
Copy link
Collaborator Author

@aried3r Would you want to see Apple follow through prior to the removal hitting master, or would you be willing to preempt that?

@aried3r
Copy link
Member

aried3r commented Sep 28, 2020

Hmm, I'm not sure where I stand on this. I guess people who got the warning already migrated or will very soon. WDYT? I'd assume reverting such a commit should be easy enough unless major refactorings happen because of it.

@benlangfeld
Copy link
Collaborator Author

I'm not sure how easy a revert would be because of the interaction with APNSv2; I suspect it might not be very easy to revert. I don't see Apple canceling their intent to shut down, though, so worst case we'd just be a little bit ahead. They already strongly encourage using the HTTP2 interface anyway, so removing the binary interface from rpush would be our way of helping with that encouragement.

@aried3r
Copy link
Member

aried3r commented Sep 28, 2020

Hmm, I'd think of it as reverting a commit, but it might involve multiple commits, so maybe reverting a merge. But you're right, I assume we can remove it in the next version. Rpush 5 should continue working and most new features/bugfixes are targeting APNS2 anyway.

@benlangfeld
Copy link
Collaborator Author

Cool. I'll prep the removal later in the week.

@aried3r
Copy link
Member

aried3r commented Oct 12, 2020

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

To give you additional time to prepare, the deadline to upgrade to the APNs provider API has been extended to March 31, 2021. APNs will no longer support the legacy binary protocol after this date.

@aried3r
Copy link
Member

aried3r commented Mar 15, 2021

Seems like Apple is in fact going through with this, as per https://developer.apple.com/news/?id=uzyxiriy. So I am okay with having a 6.0.0 ready without the legacy protocol even before that date.

We could cut a release with the fix for #598 before. Or is there a reason this cannot be released in a bugfix release for v5?

Edit: Just saw we already merged #597. Fair enough.

@aried3r
Copy link
Member

aried3r commented May 6, 2021

I'm in the process of cutting a 6.0 release. If anyone wants to tackle this and maybe have a look at #601 before that I'd really appreciate it :)

I think @gregblake already reviewed #601, but if anyone wants to have another look, feel free to!

@benlangfeld
Copy link
Collaborator Author

@aried3r I'll see if I can knock this out today.

benlangfeld added a commit that referenced this issue May 6, 2021
The binary interface was shut down by Apple. Fixes #568.
@benlangfeld benlangfeld linked a pull request May 6, 2021 that will close this issue
@aried3r aried3r removed the question label May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants