From 9a49c6d90654ea4c12fcda4f5ab8c6277a39e0ba Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Wed, 23 Dec 2020 21:18:51 +0800 Subject: [PATCH] add category to notifications --- Shared/UserNotifications/UserNotificationManager.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Shared/UserNotifications/UserNotificationManager.swift b/Shared/UserNotifications/UserNotificationManager.swift index 583942169..0e040fa3a 100644 --- a/Shared/UserNotifications/UserNotificationManager.swift +++ b/Shared/UserNotifications/UserNotificationManager.swift @@ -57,6 +57,7 @@ private extension UserNotificationManager { content.summaryArgumentCount = 1 content.sound = UNNotificationSound.default content.userInfo = [UserInfoKey.articlePath: article.pathUserInfo] + content.categoryIdentifier = "NEW_ARTICLE_NOTIFICATION_CATEGORY" if let attachment = thumbnailAttachment(for: article, webFeed: webFeed) { content.attachments.append(attachment) }