macOS: Detect Link URL from WidgetKit extension

I am building a widget for my (AppKit) Mac app, and one thing I can't figure out is how to detect when a Link is pressed in the widget to open the parent app. It just opens the parent app but I can't get any information about the URL that was passed in. With iOS, it's easy to detect, from the AppDelegate method:

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation 

I can't find anything equivalent on macOS. Can someone point me to the right place?

Ok, so it seems like the the right delegate method is:

- (void)application: (NSApplication *)application openURLs:(nonnull NSArray<NSURL *> *)urls

But unfortunately this doesn't get called at all. The 'Link' from the widget will open the app, but not call this method, so I can't figure out which URL was tapped. I have configured the Info.plist to the link URL in CFBundleURLTypes as well.

macOS: Detect Link URL from WidgetKit extension
 
 
Q