How can I make it behave like deeplink when watchOS Complication made by WidgetKit tapped.

Hi, now I'm trying to create watchOS Complication with our existing widgets from WidgetKit for iOS. I successfully made it work on watchOS as Complications. Next, I want to have a feature that when you tap that complication, not just launching our watchOS App, but open specific view of our watchOS App by passing some data to the app from the complication. I've been looking for the way how to detect which complication tapped and hopefully get some data the complication contains (like Entry). It's really helpful if you can give me any idea.

Thank you.

Hello. I have the same question. I have SwiftUI iOS app with widgets and working deep linking from widgets to specific views based on .widgetURL(…) in widget views and .onOpenURL { } in ContentView. But it seems like on watchOS .onOpenURL doesn’t work. It is simply not called on opening the watch app from complications. Is there a mechanism to deep link from complication to the watch app?

How can I make it behave like deeplink when watchOS Complication made by WidgetKit tapped.
 
 
Q