detect app launch via notification

Hi

How do I detect my app being launched via notification when using SceneDelegates and storyboards. I saw various answers like looking at

func application( application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool

but not getting anything in launchOptions
Also I added code in the following method but it's not getting called and I read that when using storyboard this method isn't called

func scene(
scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions)

Thanks
Guy

What do you mean detect ?

Inside the app, you know it has launched of course.
So you want to send a notification outside that the app has launched (why ?)

What do you do to send notification from didFinishLaunchingWithOptions ?

Please show the full code.
detect app launch via notification
 
 
Q