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": [ "*" ] } ] } }
Comments
Post a Comment