diff --git a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift index 1327198..ff40b49 100644 --- a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift +++ b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift @@ -1530,7 +1530,11 @@ final class RemoteStore: ObservableObject { /// so they know whether to defer to the phone's own Live Activity creation (foreground) or /// push-to-start the glance themselves (backgrounded — the phone can't reliably start one). Starts /// `true`: `onAppear` runs in the foreground; the background adopt-wake flips it first (§5.3). - private var isForeground = true + /// Mirrored to `LiveActivityManager` so it knows whether a "needs you" arrival should alert + /// through the glance (backgrounded) or stay silent while a banner announces it (foreground). + private var isForeground = true { + didSet { LiveActivityManager.shared.foreground = isForeground } + } /// Host ids already told the *current* `isForeground` value — cleared whenever it flips so the /// next sync re-notifies every host (mirrors `pushToStartSentTo`). private var foregroundSentTo: Set = []