Skip to content

Commit

Permalink
Observe app state for visionOS and tvOS
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshihorie committed Sep 9, 2024
1 parent 65ad65b commit 9c81a67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/LiveKit/Support/AppStateListener.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class AppStateListener: MulticastDelegate<AppStateDelegate> {

let defaultCenter = NotificationCenter.default

#if os(iOS)
#if os(iOS) || os(visionOS) || os(tvOS)
defaultCenter.addObserver(forName: UIApplication.didEnterBackgroundNotification,
object: nil,
queue: queue)
Expand Down

0 comments on commit 9c81a67

Please sign in to comment.