From c6427987b88643ba82069b0bdf12b5ed5dcd84d9 Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Mon, 6 Jul 2026 21:34:34 -0700 Subject: [PATCH] Push Notification Live Activity Redundancy Nucleic-Session: 73687ED9-C11C-438C-832B-979332B73893 Co-authored-by: Nucleic --- NucleicRemote/NucleicRemote/Models/RemoteStore.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift index 39b361d..ab75ef3 100644 --- a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift +++ b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift @@ -715,7 +715,12 @@ final class RemoteStore: ObservableObject { } cb.sessionBecameWaiting = { [weak self] summary in guard let self, !self.isActive else { return } - NotificationRouter.shared.postSessionUpdate(summary) + // Backgrounded: prefer the glance — it shows the waiting session and alerts through the + // local update (sound/haptic). Only fall back to a banner when there's no glance at all + // (Live Activities off), so a needs-input arrival is never silent. + if !LiveActivityManager.shared.hasLiveActivity { + NotificationRouter.shared.postSessionUpdate(summary) + } } cb.wireError = { [weak self] error in self?.showError(error.message, sessionID: error.sessionID)