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
693 stars 105 forks source link

Need to extend PushType to support LiveActivities #165

Closed watling closed 2 years ago

watling commented 2 years ago

I believe the pushType enum needs to include a new element for liveactivities

extension APNSwiftConnection { public enum PushType: String { case alert case background case mdm case voip case fileprovider

    **  case liveactivity **

}

}

kylebrowning commented 2 years ago

It does include it.

https://github.com/swift-server-community/APNSwift/blob/main/Sources/APNSwift/APNSPushType.swift#L26

watling commented 2 years ago

Sorry, I wasn't aware of the alpha builds - Thanks.