From 9d583f5926bf1e64d768807b3ca61576f11ded60 Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Wed, 7 Jan 2026 15:01:36 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20Change=20Widget=20Refr?= =?UTF-8?q?esh=20Policy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change widget update policy to never to give app more control of refresh timings. --- Widget/TimelineProvider.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Widget/TimelineProvider.swift b/Widget/TimelineProvider.swift index 200281b3b..fb991344b 100644 --- a/Widget/TimelineProvider.swift +++ b/Widget/TimelineProvider.swift @@ -54,12 +54,9 @@ struct Provider: TimelineProvider { entry = WidgetTimelineEntry(date: date, widgetData: WidgetData(currentUnreadCount: 0, currentTodayCount: 0, currentStarredCount: 0, unreadArticles: [], starredArticles: [], todayArticles: [], lastUpdateTime: Date())) } - // Configure next update in 1 hour. - let nextUpdateDate = Calendar.current.date(byAdding: .hour, value: 1, to: date)! - let timeline = Timeline( entries: [entry], - policy: .after(nextUpdateDate)) + policy: .never) completion(timeline) } From 0018437616f0bce7a291ea63faa3629e05fcf19a Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Wed, 7 Jan 2026 15:04:38 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20Make=20sure=20the=20wi?= =?UTF-8?q?dget=20is=20refreshed=20in=20background?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iOS/AppDelegate.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/iOS/AppDelegate.swift b/iOS/AppDelegate.swift index 2c80612cc..21c26eb2e 100644 --- a/iOS/AppDelegate.swift +++ b/iOS/AppDelegate.swift @@ -390,6 +390,7 @@ private extension AppDelegate { } await AccountManager.shared.refreshAll(errorHandler: ErrorHandler.log) if !AccountManager.shared.isSuspended { + WidgetDataEncoder.shared?.encode() self.suspendApplication() Self.logger.info("Background refresh completed.") task.setTaskCompleted(success: true) From 78a148d36431c9178d4ef27394bad30e9b98ac3a Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Wed, 7 Jan 2026 15:05:28 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=94=A5=20Remove=20comments=20from=20b?= =?UTF-8?q?y-gone=20era?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iOS/AppDelegate.swift | 3 --- 1 file changed, 3 deletions(-) diff --git a/iOS/AppDelegate.swift b/iOS/AppDelegate.swift index 21c26eb2e..6bddacfea 100644 --- a/iOS/AppDelegate.swift +++ b/iOS/AppDelegate.swift @@ -375,9 +375,6 @@ private extension AppDelegate { } } - /// Performs background feed refresh. - /// - Parameter task: `BGAppRefreshTask` - /// - Warning: As of Xcode 11 beta 2, when triggered from the debugger this doesn't work. func performBackgroundFeedRefresh(with task: BGAppRefreshTask) { scheduleBackgroundFeedRefresh() // schedule next refresh