This is the second day of my participation in the More text Challenge. For more details, see more text Challenge

  1. Create apple-app-site-association in the Uniapp project and enter it
{
    "applinks": {
        "apps": [],
        "details": [
            {
                "appID": "WN8JX3U797.com.dandanyx.app",
                "paths": [ "*" ]
            }
        ]
    }
}
Copy the code

Teamid (‘ com.dandanyx.app ‘) is in the AppID Paths of the Apple Developer Center, and * is available for global access

  1. Put the apple-app-site-association file in the root directory or accessible directory of the corresponding WEBSITE of the app, open the corresponding xxx.com/apple-app-site-association, and you can download it normally, and access it under the ios browser. If the json file is opened, it is correct

  2. In wechat open platform, mobile application, configure ios configuration, universal link path, fill in the corresponding url path, that is, XXx.com

  3. In the Uniapp directory, if it is Uniapp, app-plus->distribute->ios configuration

Ios configuration * / packaging / * "ios" : {" "capabilities" : {" entitlements ": {" com. Apple. Developer. Yahoo - domains" : [ "applinks:www.dandan120.com" ] } } }Copy the code

After that, the cloud is packaged and uploaded (this method is only applicable to uniAPP cloud packaging). If it is configured locally or installed locally, you need to configure associate domains in Targets in Xcode, and enter the corresponding root directory url in Applinks

  1. After the configuration is successful, you can use the cloud package and wait about 5 minutes for the configuration to take effect

People are lazy, do not want to picture, are their own blog content (dry goods), hope to help everyone

Public number: xiao He growth, The Buddha department more text, are their own once stepped on the pit or is learned