I'm working with universal link in iOS. It is working fine from Safari browser and messages.
Setup Server
I'm having a server running online. To securely associate my iOS app with a server, Apple requires that you make available a configuration file, called apple-app-site-association. This is a JSON file which describes the domain and supported routes.
The apple-app-site-association file needs to be accessible via HTTPS, without any redirects, at https://{domain}/apple-app-site-association.
The file looks like this:
{
"applinks": {
"apps": [],
"details": [
{
"appID": "**********.com.domain.appname”,
"paths": ["*"]
}
]
}
}
NOTE - I'm not append .json to the apple-app-site-association filename.
And successfully setup the iOS application also.
My requirement is, I shared the link from my app to Facebook. When users tap the link from Facebook, It should open the app when the app is available on the phone or it should be opened from the browser.
Now my problem is:
Step 1: I shared the link from my App to Facebook.
Step 2: I logged in Facebook from Safari. When I tap the link, it is successfully opens my app.
Step 3: If I do the same in Facebook app. It is opening in inside the Facebook web view. But I need it to be open my app.