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:
Diggory Laycock committed 2022-10-01 14:20:21 +01:00
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) {