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

apns-push-type cannot be present with voip push #87

Closed
matthewh opened this issue Sep 20, 2019 · 3 comments
Closed

apns-push-type cannot be present with voip push #87

matthewh opened this issue Sep 20, 2019 · 3 comments

Comments

@matthewh
Copy link

I'm getting InvalidPushType when attempting to send a VOIP push with apns-push-type specified.

@eliburke
Copy link

eliburke commented Oct 2, 2019

This started failing on Sept 19th for us, the day iOS 13 was released (literally, working in the afternoon on the 18th, failing in the morning on the 19th). apns-push-type cannot be set to alert or to background or it reports an error and is not delivered to clients.

We did not test it with other values, but with a forked copy of PyAPNs2 that does not set apns-push-type our VOIP push notifications started working again.

@Pr0Ger
Copy link
Owner

Pr0Ger commented Oct 2, 2019

Looks like Apple recently added few new types of notifications (voip, complication, fileprovider, mdm) and also lifted requirement that this field is required (now it is only required for notifications for watchOS 6). I'll release an update to reflect this changes tonight

@Pr0Ger Pr0Ger closed this as completed in 56d8bf2 Oct 2, 2019
@72squared
Copy link
Contributor

Seems like you should also handle the InvalidPushType response here?

https://github.com/Pr0Ger/PyAPNs2/blob/master/apns2/errors.py#L170-L200

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

4 participants