swift-server-community / APNSwift

📱HTTP/2 Apple Push Notification Service built with swift - send push notifications to iOS, iPadOS, tvOS, macOS, watchOS, visionOS, and Safari!
Apache License 2.0
695 stars 105 forks source link

Add support for broadcast push notifications, channels #205

Open eliperkins opened 3 months ago

eliperkins commented 3 months ago

Is your feature request related to a problem? Please describe.

iOS 18 introduces a new method for sending push notifications to groups for Live Activities, called "broadcast push notifications." It'd be great to support this new APNS API with this library!

Describe the solution you'd like

Describe alternatives you've considered

Either using previous Live Activity APIs with push notifications, or not supporting this API all together.

Additional context

I'd be happy to implement support for this. Feel free to assign this issue to me.

kylebrowning commented 3 months ago

@eliperkins feel free to take this one up, otherwise ill get to it soon.

kylebrowning commented 3 months ago

@eliperkins one question, do you mind if it only works on swift-6? IM contemplating managing a version of swift 5 for a little while.

eliperkins commented 3 months ago

@kylebrowning sounds good! I started on a spike of this for an hour or so after creating this issue: https://github.com/swift-server-community/APNSwift/compare/main...eliperkins:APNSwift:channels

I've got some personal commitments in the next few weeks, so please take this across the finish line if you're interested in it!

one question, do you mind if it only works on swift-6? IM contemplating managing a version of swift 5 for a little while.

Swift 6 is all good with me 😇

mattes-bru commented 2 weeks ago

👍 Can't wait to test this out