I'm working on Spotlight integration for my mac app, I just indexed the data with CoreSpolight everything working fine when the app is running.
I'm using below mentioned NSApplicationDelegate method to open corresponding content when the user taps the spotlight result.
func application(_ application: NSApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([NSUserActivityRestoring]) -> Void) -> Bool
This method is not triggering when the app is not running (Ensured using NSLog). And I'm expecting it has to open my application as well But both not working as I expected.
What am I missing in this implementation?