From df956dfe275a905735a0bc2a934f70f56635b833 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sun, 25 Feb 2024 18:45:44 -0800 Subject: [PATCH] Fix deprecation warnings. --- Shared/UserNotifications/UserNotificationManager.swift | 2 -- iOS/AppDelegate.swift | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Shared/UserNotifications/UserNotificationManager.swift b/Shared/UserNotifications/UserNotificationManager.swift index e41165405..35523f595 100644 --- a/Shared/UserNotifications/UserNotificationManager.swift +++ b/Shared/UserNotifications/UserNotificationManager.swift @@ -62,8 +62,6 @@ private extension UserNotificationManager { } content.body = ArticleStringFormatter.truncatedSummary(article) content.threadIdentifier = webFeed.webFeedID - content.summaryArgument = "\(webFeed.nameForDisplay)" - content.summaryArgumentCount = 1 content.sound = UNNotificationSound.default content.userInfo = [UserInfoKey.articlePath: article.pathUserInfo] content.categoryIdentifier = "NEW_ARTICLE_NOTIFICATION_CATEGORY" diff --git a/iOS/AppDelegate.swift b/iOS/AppDelegate.swift index 657ba11b8..72426842a 100644 --- a/iOS/AppDelegate.swift +++ b/iOS/AppDelegate.swift @@ -50,7 +50,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD didSet { if unreadCount != oldValue { postUnreadCountDidChangeNotification() - UIApplication.shared.applicationIconBadgeNumber = unreadCount + UNUserNotificationCenter.current().setBadgeCount(unreadCount) } } }