Why is applicationWillEnterForeground called on first launch when using AppIntent with openAppWhenRun = true?

Hello,

I’ve implemented a feature in my app using AppIntent. When the app is not running in the background and is launched for the first time via a shortcut, both application:didFinishLaunchingWithOptions: and applicationWillEnterForeground: are called.

Normally, on the first launch, applicationWillEnterForeground: is not invoked. However, this behavior seems to occur only when the app is launched through a shortcut.

I’d like to understand why applicationWillEnterForeground: is being called in this scenario.

For reference, the AppIntent has openAppWhenRun set to true.

Thank you in advance for your help!

Why is applicationWillEnterForeground called on first launch when using AppIntent with openAppWhenRun = true?
 
 
Q