I'm trying to use universal links to be detected in a callback in an app developed in SwiftUI. I think all the settings are ok, including the AASA file, capability in the app with applinks: join-domain.com. When I tap in the link https://join-domain.com/something in the notes app it will open my app so I assume is detecting the domain but it never enters in any callback of the appDelegate.
Inside the app I have the following:
import SwiftUI
@main
struct XApp: App {
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
and in AppDelegate:
class AppDelegate: UIResponder, UIApplicationDelegate, ObservableObject {
func application(_ application: UIApplication,
continue userActivity: NSUserActivity,
restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
print("did it entered here?")
}
}
I run through stackoverflow, nothing worked. In this one thread it mentions the 'Application Scene Manifest' and configurationForConnectingSceneSession. I have nothing of that.
Any ideas?