mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 17:29:23 +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:
1 parent
f930eca9bb
commit
71275813da
3 files changed
+6
-1
No files matched your search
@@ -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