It is very easy to implement custom sound ability for Apple Push Notifications; the problem is that the documentation does not mention what is required for this.
, , - (, Today Extension). , , APN. , , ( NotificationCenter.framework), .
> :

Extension > > Bundle > :

APN, , :
func applicationDidFinishLaunching(_ aNotification: Notification) {
NSApplication.shared().
registerForRemoteNotifications(matching:
[.alert, .sound, .badge])
NSApp.dockTile.badgeLabel = nil
}
func application(_ application: NSApplication,
didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
}
func application(_ application: NSApplication, didReceiveRemoteNotification
userInfo: [String : Any]) {
}
func application(_ application: NSApplication,
didFailToRegisterForRemoteNotificationsWithError error: Error) {
print("could not register for notfications: \(error)")
}
, , , AudioServicesPlaySystemSound, , , , NotificationCenter.framework , .