add category to notifications

This commit is contained in:
Stuart Breckenridge 2020-12-23 21:18:51 +08:00
parent 3898edc8b1
commit 9a49c6d906
No known key found for this signature in database
GPG Key ID: ED2F112EEA9EF8A5
1 changed files with 1 additions and 0 deletions

View File

@ -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)
}