UISceneDelegate.sceneWillResignActive and sceneDidEnterBackground not called on iOS 27

In our UIKit app built with Xcode 27.2 / iOS 27 SDK, the foreground-to-background UISceneDelegate methods are not called when the app enters background. The matching UIApplication notifications are still posted.

Environment:

  • Device: iPhone 13
  • OS: iOS 27.2
  • Xcode: 27.2 (27B52)
  • UIApplicationSupportsMultipleScenes: false
  • SceneDelegate configured in Info.plist

Observed:
Launch:
scene:willConnectToSession:options:
sceneWillEnterForeground:
sceneDidBecomeActive:

Press Home / switch app / lock screen:
(sceneWillResignActive: NOT called)
(sceneDidEnterBackground: NOT called)

Return to app:
sceneWillEnterForeground:
sceneDidBecomeActive:

Evidence from file logging:
[2026-11-12 11:28:05.502] sceneWillEnterForeground
[2026-11-12 11:28:05.729] sceneDidBecomeActive
[2026-11-12 13:25:45.077] sceneWillEnterForeground
[2026-11-12 13:25:45.517] sceneDidBecomeActive

No sceneWillResignActive or sceneDidEnterBackground entries.

However, UIApplicationWillResignActiveNotification and UIApplicationDidEnterBackgroundNotification are delivered correctly.

Expected:
sceneWillResignActive: and sceneDidEnterBackground: should be called when leaving foreground.

Workaround:
We currently fall back to UIApplication notifications.

Answered by wufq in 916341022

Closing this report — the issue was a defect in our own app, not in iOS. Our view controller assigned itself to UIWindowScene.delegate inside an orientation helper, replacing the app's real scene delegate at runtime. From that point UIKit correctly dispatched sceneWillEnterForeground:, sceneDidBecomeActive: and scene:openURLContexts: to that object, which doesn't implement them, so the events appeared to be "lost". Removing the assignment restored all scene callbacks on iOS 27.0.1. The behaviour we reported is UIKit working as designed.

Accepted Answer

Closing this report — the issue was a defect in our own app, not in iOS. Our view controller assigned itself to UIWindowScene.delegate inside an orientation helper, replacing the app's real scene delegate at runtime. From that point UIKit correctly dispatched sceneWillEnterForeground:, sceneDidBecomeActive: and scene:openURLContexts: to that object, which doesn't implement them, so the events appeared to be "lost". Removing the assignment restored all scene callbacks on iOS 27.0.1. The behaviour we reported is UIKit working as designed.