Live Activity Launch Consistency
Nucleic-Session: 9D2EE9AB-2E44-485B-A196-54D250F9D89B Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -414,6 +414,10 @@ final class RemoteStore: ObservableObject {
|
|||||||
/// state until the app next runs.
|
/// state until the app next runs.
|
||||||
func handleLiveActivityAdoptWake(completion: @escaping () -> Void) {
|
func handleLiveActivityAdoptWake(completion: @escaping () -> Void) {
|
||||||
guard !demoMode, isPaired else { completion(); return }
|
guard !demoMode, isPaired else { completion(); return }
|
||||||
|
// A silent adopt wake means we're background (possibly cold-launched with no scene, where
|
||||||
|
// `isForeground`'s default would otherwise read stale-true) — record that so the reconnect
|
||||||
|
// below reports background and the host keeps owning the glance via push-to-start (§5.3).
|
||||||
|
setForegroundState(false)
|
||||||
setupLiveActivityBridge() // starts the push-to-start + adoption observers if not already
|
setupLiveActivityBridge() // starts the push-to-start + adoption observers if not already
|
||||||
startNetworkingIfNeeded()
|
startNetworkingIfNeeded()
|
||||||
#if canImport(UIKit)
|
#if canImport(UIKit)
|
||||||
|
|||||||
Reference in New Issue
Block a user