ios - Supporting same domain on two different apps supporting universal links..? -


i have application supports universal links , in app store.

say supports domain www.example.com , universal links can opened via this. have applinks:www.example.com in associated domains.

now if want release app , supports same domain. how ios distinguish app open via universal links..?

in order supporting universal links single domain on 2 different apps need make changes in existing apple-app-site-association file, @ https://{domain}/apple-app-site-association.

for single app support

for single application support it's this

{     "applinks": {         "apps": [],         "details": [             {                 "appid": "1234abcde.com.domain.myapp",                 "paths": ["*"]             }         ]     } } 

for multiple app support

for multiple application support, need add 1 more key-value pair in details array of applinks in apple-app-site-association. it's this

{     "applinks": {         "apps": [],         "details": [             {                 "appid": "1234abcde.com.domain.myapp",                 "paths": ["*"]             },             {                 "appid": "1234abcde.com.domain.mysecondapp",                 "paths": ["*"]             },             {                 "appid": "1234abcde.com.domain.mythirdapp",                 "paths": ["*"]             }         ]     } } 

general format of apple-app-site-association file

the file looks this:

{ "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 support universal links in ios app , setup server it?


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -