I bought every thing configured and examined utilizing many MANY docs on-line. My app has been printed by 2 months now I nonetheless I cant get Common Hyperlinks to work.
I need assistance with this. The venture was made in Kotlin Multiplatform. If i had points with dealing with the hyperlinks is okay however my app is just not even tried to be opened. Simply in case that is my code and the venture construction was generated by the https://kmp.jetbrains.com/?android=true&ios=true&iosui=compose&desktop=true&internet=true&webui=compose&includeTests=true
The category with the code to ship the acquired URL to deal with is iOSApp and right here is the code too:
import SwiftUI
import ComposeApp
@UIApplicationMain
class AppDelegate: NSObject, UIApplicationDelegate {
var window: UIWindow?
func software(_ software: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
self.window = UIWindow(body: UIScreen.most important.bounds)
let mainViewController = UIHostingController(rootView: ContentView())
self.window!.rootViewController = mainViewController
self.window!.makeKeyAndVisible()
return true
}
func software(_ app: UIApplication, open url: URL, choices: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
iOSDeeplinkHandler.shared.addLink(worth: url.absoluteString)
return true
}
func software(_ software: UIApplication, proceed userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
guard userActivity.activityType == NSUserActivityTypeBrowsingWeb,
let url = userActivity.webpageURL
else {
return false
}
iOSDeeplinkHandler.shared.addLink(worth: url.absoluteString)
return true
}
}






