diff --git a/iOS/AppDelegate.swift b/iOS/AppDelegate.swift index b160c1ed1..0f0daece9 100644 --- a/iOS/AppDelegate.swift +++ b/iOS/AppDelegate.swift @@ -56,7 +56,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD var isAnySceneInForeground: Bool { for scene in UIApplication.shared.connectedScenes { - if scene.activationState != .background { + if scene.activationState == .foregroundInactive || scene.activationState == .foregroundActive { return true } }