mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
add custom notification sound
Added a blip sound file to the Resources and the iOS target. Changed the notification code to use the sound.
This commit is contained in:
@@ -62,7 +62,8 @@ private extension UserNotificationManager {
|
||||
}
|
||||
content.body = ArticleStringFormatter.truncatedSummary(article)
|
||||
content.threadIdentifier = webFeed.webFeedID
|
||||
content.sound = UNNotificationSound.default
|
||||
// https://freesound.org/people/cabled_mess/sounds/350862/
|
||||
content.sound = UNNotificationSound(named: UNNotificationSoundName(rawValue: "notificationSoundBlip.caf"))
|
||||
content.userInfo = [UserInfoKey.articlePath: article.pathUserInfo]
|
||||
content.categoryIdentifier = "NEW_ARTICLE_NOTIFICATION_CATEGORY"
|
||||
if let attachment = thumbnailAttachment(for: article, webFeed: webFeed) {
|
||||
|
||||
Reference in New Issue
Block a user