diff --git a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift index 16f7556..62f4a3d 100644 --- a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift +++ b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift @@ -230,6 +230,12 @@ final class RemoteStore: ObservableObject { var canControl: Bool { grantedScope >= .control } + /// The process-wide store. The SwiftUI `App` binds its `@StateObject` to this instance so the + /// UI and any headless entry point share one store — in particular the background push handler + /// (`PushAppDelegate`), which on a silent launch has no mounted scene (`onAppear` never fires) + /// and so must reach the store directly to bring it online and adopt a push-started Live Activity. + static let shared = RemoteStore() + private let identity = IdentityStore.loadOrCreateIdentity() let discovery = LANDiscovery() /// Proactive network-path awareness (shared across every host connection): flips transports the