I got everything configured and tested using many MANY docs online. My app has been published by 2 months now I still I cant get Universal Links to work.
I need help with this. The project was made in Kotlin Multiplatform. If i had issues with handling the links is ok but my app is not even attempted to be opened. Just in case this is my code and the project structure was generated by the https://kmp.jetbrains.com/?android=true&ios=true&iosui=compose&desktop=true&web=true&webui=compose&includeTests=true
The class with the code to send the received URL to handle is iOSApp and here is the code too:
import SwiftUI
import ComposeApp
@UIApplicationMain
class AppDelegate: NSObject, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
self.window = UIWindow(frame: UIScreen.main.bounds)
let mainViewController = UIHostingController(rootView: ContentView())
self.window!.rootViewController = mainViewController
self.window!.makeKeyAndVisible()
return true
}
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
iOSDeeplinkHandler.shared.addLink(value: url.absoluteString)
return true
}
func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
guard userActivity.activityType == NSUserActivityTypeBrowsingWeb,
let url = userActivity.webpageURL
else {
return false
}
iOSDeeplinkHandler.shared.addLink(value: url.absoluteString)
return true
}
}




