Push Notification Live Activity Redundancy
Nucleic-Session: 73687ED9-C11C-438C-832B-979332B73893 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -1530,7 +1530,11 @@ final class RemoteStore: ObservableObject {
|
|||||||
/// so they know whether to defer to the phone's own Live Activity creation (foreground) or
|
/// 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
|
/// 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).
|
/// `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
|
/// Host ids already told the *current* `isForeground` value — cleared whenever it flips so the
|
||||||
/// next sync re-notifies every host (mirrors `pushToStartSentTo`).
|
/// next sync re-notifies every host (mirrors `pushToStartSentTo`).
|
||||||
private var foregroundSentTo: Set<String> = []
|
private var foregroundSentTo: Set<String> = []
|
||||||
|
|||||||
Reference in New Issue
Block a user