From 4f30e304b0a39bbf30c4d30ef2973a0637486f78 Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Mon, 6 Jul 2026 21:33:11 -0700 Subject: [PATCH] Push Notification Live Activity Redundancy Nucleic-Session: 73687ED9-C11C-438C-832B-979332B73893 Co-authored-by: Nucleic --- NucleicRemote/NucleicRemote/LiveActivityManager.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NucleicRemote/NucleicRemote/LiveActivityManager.swift b/NucleicRemote/NucleicRemote/LiveActivityManager.swift index e97793d..fd39e6d 100644 --- a/NucleicRemote/NucleicRemote/LiveActivityManager.swift +++ b/NucleicRemote/NucleicRemote/LiveActivityManager.swift @@ -54,6 +54,10 @@ final class LiveActivityManager { /// latest through one serial task means the newest data always wins — firing an unstructured /// `Task` per `sync` let a later update lose a race to an earlier one and freeze the glance. private var pendingState: NucleicSessionAttributes.ContentState? + /// The alert the next applied update should carry (sound/haptic when a backgrounded session newly + /// needs the user). Latched alongside `pendingState` so an update coalesced away by a fresher one + /// can't drop the alert; consumed (and cleared) when an update is applied. + private var pendingAlert: AlertConfiguration? private var updateTask: Task? /// Set by `RemoteStore` to ship the activity's APNS push token to the paired Macs (and to tell