sceneWillResignActive be called after app launched from CameraCaptureIntentCaptureIntent

I made a LockScreen ControlWidget with CameraCaptureIntent, but I found launch my main app from Control Widget, SceneDelegate will be called like below:

sceneWillEnterForeground
sceneDidBecomeActive
sceneWillResignActive
sceneDidBecomeActive

sceneWillResignActive be called, is it normal? it make my app camera launch with a delay.

I would expect the first 2 to be called and nothing else, but since the correct delegate method is called at the end, your correct code should execute. I can also image a scenario where your app launches but the user didn't want the app to actually launch so the first 3 calls would be made (quickly swiping the app away) so handling the resign case in quick succession is a scenario that you should code for, as well as quickly opening the app again afterward.

Rico


WWDR | DTS | Software Engineer

sceneWillResignActive be called after app launched from CameraCaptureIntentCaptureIntent
 
 
Q