How does UNNotificationResponse determine targetScene if app specifies multiple Scene Configurations?

I use UNUserNotificationCenterDelegate. I'm in the process of adding new scene configurations for windows for the Mac environment. Some of these windows are auxiliary windows.

So I was just wondering what happens with UNNotificationResponse targetScene property.

In -userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler: is it possible for one of the auxiliary window scenes to be the targetScene or does UNNotificationResponse always choose the configuration at index 0 in the info.plist?

targetScene is nil on Mac. For my app I'll just create a new window (new window scene). On iPad I assume it just picks the most active scene but I'll have to test it.

Accepted Answer

targetScene is nil on Mac. For my app I'll just create a new window (new window scene). On iPad I assume it just picks the most active scene but I'll have to test it.

How does UNNotificationResponse determine targetScene if app specifies multiple Scene Configurations?
 
 
Q