HomeiOS DevelopmentIOS app not opened or prompted to open when Common Hyperlink used

IOS app not opened or prompted to open when Common Hyperlink used


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.

IOS app not opened or prompted to open when Common Hyperlink used

example that the app is recognized by the Developer Diagnostic tool on the same phone

i have checked every step as the uses of bundle id and team id to be the same

my config on xcode Associated domain capability is also been checked many times

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:

ios project structure

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
    }
}

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments