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!

Answered by DTS Engineer in 816202022

I accidentally wrote the same thing twice. I’m sorry. Can you still answer my question?

Can you still answer my question?

Sadly no, it’s outside of my area of expertise. I’m just here ‘garbage collecting’ duplicate threads (-:

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

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