Push Notification Live Activity Redundancy

Nucleic-Session: 73687ED9-C11C-438C-832B-979332B73893
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-06 21:34:09 -07:00
co-authored by Nucleic
parent 4be25b9293
commit 890399e486
@@ -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<String> = []