Detect app launch from WidgetKit widget extension

Tapping a WidgetKit widget automatically launches its parent application. How can I detect if my application was launched from its WidgetKit widget extension?

I'm unable to find any documentation on capturing this in the applications AppDelegate and/or SceneDelegate.
Answered by 404UserNotFound in 630656022
Accepted Answer
Detect app launch from WidgetKit widget extension
 
 
Q