What is the callback for widgetURL on WKExtensionDelegate? I tried handleUserActivity, but it failed to be called.

The demo code is as follows.

     case .accessoryRectangular:
      ZStack() {
        AccessoryWidgetBackground()
        Text(entry.date, style: .time)
      }
      .widgetURL(URL(string: "demo://test"))

I didn't get any useful information on the related documentation. Am I missing something?

Im also trying to figure this out without success

Feedback ID:FB11474915

Join to this. I want to have deep link from complications to specific view in watch app. In iOS app .widgetURL works great together with .onOpenURL. But on watchOS it doesn’t work (at least for me). It seems like WKExtensionDelegate also doesn’t have such capabilities as SceneDelegate in iOS app to handle incoming URLs..

What is the callback for widgetURL on WKExtensionDelegate? I tried handleUserActivity, but it failed to be called.
 
 
Q