We use LAContext.evaluatePolicy(.deviceOwnerAuthentication) for a local app lock.
On an iPhone 16 Pro running iOS 26.6.2, after authentication succeeds, UIApplication.shared.applicationState can remain .inactive for approximately 2–8 seconds although the app UI is visible.
If the user enters the App Switcher during this interval, the app receives no additional willResignActive or didEnterBackground notification. Returning to the app produces only didBecomeActive.
This means the app cannot distinguish between:
remaining in the app while the Face ID UI finishes dismissing; and
entering the App Switcher and returning during the same inactive interval.
Reproduction:
Run a minimal UIKit app on a physical Face ID device.
Call evaluatePolicy(.deviceOwnerAuthentication).
Immediately after successful authentication, enter the App Switcher before didBecomeActive.
Wait three seconds and return.
Is there a supported public API or lifecycle pattern that lets an app lock immediately in this situation without keeping its content covered until didBecomeActive?