How to used Universal link for application?

Viewed 65

I need to used universal link for inter application communication for third party library. I have uploaded AASA(apple-app-site-association) file to server and it's pass all the validation (Here). Here is the screenshot

enter image description here

Assosiated domain

enter image description here

I also put the code of deeplink

 func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
        if let incomingURL = userActivity.webpageURL
        {
            print("Incoming url is \(incomingURL)")

        } 


        return true

    }

But still i have question which link i need to refer as universal link also I used link at where AASA file uploaded but still it is not working. Please help me.

2 Answers

May be you need to add the Associated Domains Entitlement to your app. Include the domains supported by your app using the applinks service prefix. See Add the Associated Domains Entitlement.

Finally I have figure out the problem. I need to use association domain link as Universal link other all the things are right

Related