diff --git a/NucleicRemote/NucleicRemote/NucleicRemoteApp.swift b/NucleicRemote/NucleicRemote/NucleicRemoteApp.swift index 0337176..7209464 100644 --- a/NucleicRemote/NucleicRemote/NucleicRemoteApp.swift +++ b/NucleicRemote/NucleicRemote/NucleicRemoteApp.swift @@ -2,7 +2,9 @@ import SwiftUI @main struct NucleicRemoteApp: App { - @StateObject private var store = RemoteStore() + // Bind to the shared instance so the background push handler (which runs with no mounted scene) + // and the UI drive the same store. + @StateObject private var store = RemoteStore.shared @Environment(\.scenePhase) private var scenePhase @UIApplicationDelegateAdaptor(PushAppDelegate.self) private var pushDelegate