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

Push to Talk (PTT) Support #181

Closed mash3l777 closed 2 months ago

mash3l777 commented 1 year ago

👋 Hello World,

Summary:

This pull request introduces support for the new Push to Talk (PTT) framework available in iOS 16.0+ and iPadOS 16.0+. Check Apple Documentation for more info.

Changes:

Added a APNSPushToTalkNotification Structure. Updated a APNSClientProtocol with sendPushToTalkNotification function. Added the new APNSPushType .pushtotalk 🎉. Updated APNSExample -> Program.swift to reflect these changes.

Why this is important:

The Push to Talk framework is a game-changer for real-time audio transmission. Its power efficiency and user-friendly design . Integrating this into APNSSwift will make our library even more awesome for developers.

Testing:

I've added unit tests to cover this new functionality and also performed manual tests to ensure everything is working as expected.

Looking forward to your feedback! 😊

Cheers!☕️