genesluder / python-apns

A library for interacting with APNs using HTTP/2 and token-based authentication.
MIT License
90 stars 50 forks source link

Add apns-push-type header to support more push notification types #25

Closed forfolias closed 3 years ago

forfolias commented 4 years ago

docs at: https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns#2947610

Tested using 'voip', 'alert' and 'background' but it should be working on other push types as well.

milanof-huma commented 4 years ago

this is great, I was about to do the same! @genesluder

sebatyler commented 4 years ago

Is there a plan for merging this and release to pip? @genesluder

noahsark769 commented 3 years ago

@genesluder just noting that this would be great to have for my use case too. Currently you can't send silent pushes to iOS 13+ devices with python-apns since it doesn't include this header. Happy to help with getting this merged if there's any way I can. Thanks!

genesluder commented 3 years ago

Thanks all! Forgot to respond here, but this has been distributed to PyPi. I'll try to keep a closer eye on this project.