From 7aa202f3ad7847527c0ed76039b2684b40df8b4f Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Mon, 6 Jul 2026 14:03:24 -0700 Subject: [PATCH] Launch Activity Logic Nucleic-Session: EBB24271-3AB2-4CBD-A47A-59FC73500371 Co-authored-by: Nucleic --- NucleicRemote/NucleicRemote/NucleicRemoteApp.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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