What is Universal Link

Universal Link is an easy way to launch an App via AN HTTPS link since IOS 9

What are the advantages of Scheme over Universal Link

  • Unique Scheme Is customized, so there are scenarios where different apps define the same scheme. In the scenario where the same scheme is installed at the same time, the jump and interstring will occur. Universal Link itself is based on HTTPS protocol to jump, and the domain name used is unique. Generally, two apps will not use the same Universal link.
  • Security When users download the APP, they will go to the config url to download the configuration of Universal Link, and other people have no permission to change the root directory of this background. Some share SDKS have moved towards semi-mandatory use of Universal Link, mainly for security reasons.
  • Scheme is not available when the app is not installed, but Universal Link can go to a landing page to guide the user to install the app. HTTPS is also easier to use than Scheme

The universal Link configuration starts

1, need a server with HTTPS, can upload files to the root directory (tried Ali cloud OSS, no suffix format does not support, so failed to debug)

2. Prepare a JSON configuration file apple-app-site-association and upload it to the root directory on the server

{ “applinks”: { “apps”: [], “details”: [ { “appID”: “9JA89QQLNQ.com.apple.wwdc”, “paths”: [ “/wwdc/news/”, “/videos/wwdc/2015/*”] }, { “appID”: “ABCD1234.com.apple.wwdc”, “paths”: [ “*” ] } ] }}

3. Apple Developer Center opened the Associated Domains module, updated the corresponding certificates, and added the corresponding Domains general link address in the project

4, the following can be packaged verification (install package when do not open proxy) normally enter the common link in Safari phenomenon is as follows