From f13a94c7b02524ce6b3143125c3dc8704ace1993 Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Mon, 6 Jul 2026 20:05:39 -0700 Subject: [PATCH] Live Activity Launch Consistency Nucleic-Session: 9D2EE9AB-2E44-485B-A196-54D250F9D89B Co-authored-by: Nucleic --- NucleicRemote/NucleicRemote/Models/RemoteStore.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift index e9dd926..e896ca4 100644 --- a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift +++ b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift @@ -383,6 +383,10 @@ final class RemoteStore: ObservableObject { /// suspends us and the socket dies, which the next `onForeground` revalidation reconnects fast. func onBackground() { guard !demoMode else { return } + // Heading to the background: the app can't reliably start a Live Activity anymore, so tell the + // hosts to push-to-start the glance themselves when work begins (UX_IOS ยง5.3). Sent now while + // the socket-hold below still keeps the connection live for a beat. + setForegroundState(false) #if canImport(UIKit) endBackgroundHold() backgroundTask = UIApplication.shared.beginBackgroundTask(withName: "nucleic.sync.hold") {