Sunny Shah Sunny Shah - 27 days ago 14
iOS Question

Universal Link open URL after subdomain

I am working on universal link. I had some urls to open in my application.

I had added portal.xyz.com in associated domains.

Problem : My application opens on https://portal.xyz.com/. I want to continue this URL to browser. Just want to open URL that having start path https://portal.xyz.com/da/notification**.

How can I do this?

Answer Source

Please keep same associated domain in your project and you need to handle this case from apple-app-site-association file that you have uploaded in server,

{
  "applinks": {
      "apps": [],
      "details": [
          {
              "appID": "9JA89QQLNQ.portal.xyz.com"//keep your Apple Id of you application,
              "paths": [ "/da/notification/*"]
          }
      ]
  }
}

Ref: https://developer.apple.com/library/content/documentation/General/Conceptual/AppSearch/UniversalLinks.html

Hope it will be helpful.