To support Universal Links with the same domain in two different applications, you need to make changes to the existing apple-app-site-association file at https: // {domain} / apple-app-site-association.
To support one application
To support one application, it looks like
{ "applinks": { "apps": [], "details": [ { "appID": "1234ABCDE.com.domain.myapp", "paths": ["*"] } ] } }
Multiple Application Support
To support multiple applications, you need to add another key-value pair to the details applinks in apple-app-site-association . It looks like
{ "applinks": { "apps": [], "details": [ { "appID": "1234ABCDE.com.domain.myApp", "paths": ["*"] }, { "appID": "1234ABCDE.com.domain.mySecondApp", "paths": ["*"] }, { "appID": "1234ABCDE.com.domain.myThirdApp", "paths": ["*"] } ] } }
Common file format apple-app-site-association
The file is as follows:
{ "applinks": { "apps": [ ], "details": [ { "appID": "{app_prefix}.{app_identifier}", "paths": [ "/path/to/content", "/path/to/other/*", "NOT /path/to/exclude" ] }, { "appID": "TeamID.BundleID2", "paths": [ "*" ] } ] } }
References
How to support Universal Links on the application server and install iOS for it?
source share