Post app did go to background notification instead of .lowMemory when app goes to background.

This commit is contained in:
Brent Simmons committed 2026-03-14 21:50:55 -07:00
1 parent 16ac60ba41
commit a18980f65a
2 files changed
+6 -4

No files matched your search

+1 -1
View File
@@ -302,7 +302,7 @@ let appName = "NetNewsWire"
}
func applicationDidResignActive(_ notification: Notification) {
postLowMemoryNotification()
AppNotification.postAppDidGoToBackground()
saveState()
}
+5 -3
View File
@@ -129,7 +129,7 @@ import ErrorLog
}
func applicationDidReceiveMemoryWarning(_ application: UIApplication) {
postLowMemoryNotification()
AppNotification.postLowMemory()
}
private func updateBadge() {
@@ -341,13 +341,15 @@ private extension AppDelegate {
}
func suspendApplication() {
guard UIApplication.shared.applicationState == .background else { return }
guard UIApplication.shared.applicationState == .background else {
return
}
AccountManager.shared.suspendNetworkAll()
AccountManager.shared.suspendDatabaseAll()
ArticleThemeDownloader.shared.cleanUp()
postLowMemoryNotification()
AppNotification.postAppDidGoToBackground()
CoalescingQueue.standard.performCallsImmediately()
for scene in UIApplication.shared.connectedScenes {