I have a web application in angular 8 deployed on Amazon ec2 server with IIS windows hosting. There is a parallel mobile app which requires deep linking to be connected with my web app.
Mobile team developers provide us documentation to embed universal links on Web app server Documentation.
For android it works perfectly by creating a .well-known folder and place assetlinks.json in that.
For IOS as per documentation apple-app-site-association file was placed in .well-known and root folder as well, But it fails by validator provided by apple on this link [Apple Validator] (https://search.developer.apple.com/appsearch-validation-tool).
The file apple-app-site-association is extension less which is the main cause of this issue.
Content of file is as follows.
{
"applinks": {
"apps": [],
"details": [
{
"appID": "app-id",
"paths": [
"*"
]
}
]
}
}
I placed an extra file apple-app-site-association.json with main extension less file and then added below rule in web.config
<rule name="apple_json_file">
<match url="^apple-app-site-association" />
<action type="Rewrite" url="apple-app-site-association.json" />
</rule>
and allow .json file to be readable by server or bots.
<mimeMap fileExtension=".json" mimeType="application/json" />
I also tried a solution on this Answer but didn't got any success. I want apple-app-site-association file to be validated by apple Apple Validator. Any one with solution please help.