ControlWigdet Open APP with URL

This code can open app, but the deep link is not send to the app. It doesn't seem to call the UIApplicationDelegate's "application(_:open:options:)" method, so I can't read the link string that was passed in


func perform() async throws -> some IntentResult & OpensIntent {

        guard let url = URL(string: "myapp://myappintent") else {

            // throw an error of your choice here

        }
        return .result(opensIntent: OpenURLIntent(deepLink))

    }

If you app uses multiple windows UISceneDelegate's openURLContexts should be called instead.

Rico

WWDR - DTS - Software Engineer

ControlWigdet Open APP with URL
 
 
Q