This article won’t tell you what these damn things do, just how to use them, in a nutshell. Of course, here are the requirements

There is a registered domain name over SSL access to the domain name support uploading a JSON file to your domain name at least iOS 9 Beta 2 at least Xcode 7 Beta 2Copy the code

First, you must add your APP’s domain name to Xcode’s Capabilities, using Applinks: Preloading it: Also add some subdomains and extensions you might have (www.domain.com, news.domain.com, etc.).

Add all domains with the applinks: prefix, and don’t forget to include any subdomains you may need. Finished adding? Is there one more of these in the project?

Click open, remember to check in targetmembership.

Next, go to the Apple Developer account page to retrieve your TeamId, which is important, as well as the Bundle Id of your project.

Create an apple-app-site-associatio file in JSON format as follows:

  {
      "applinks": {
          "apps": []."details": [{"appID": "TEAMID.Bundle Id"."paths": [ "/wwdc/news/"."/videos/wwdc/2015/*"] {},"appID": "TEAMID.BundleID2"."paths": [ "*"}]}}Copy the code

Replace TEAMID with the Bundle Id you pulled out of apple’s developer page. The Bundle Id is the Bundle Id shown above. Then, upload this file to your domain root directory. https://branch.io/resources/universal-links/ to open the validation page, check the configuration whether the content of the pass If you are through the next step can be performed

And finally, in the appdelegate

application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray * _Nullable))restorationHandler
Copy the code