Home > Net >  Universa link configurations issue
Universa link configurations issue

Time:01-18

I'm dealing with universal link issue for the pas few days and I can't understand why it's not working.

sorry can't show the domain, so I show it as myDomain.nl

we uploaded the apple-app-site-association

https://myDomain.nl/.well-known/apple-app-site-association

and here is the contents

{
  "applinks": {
    "apps": [],
    "details": [
    {
      "appID": "5LKNOW4KJS.app.appname.com",  // teamID.app bundle identifier 
      "paths": ["*"]
    }
    ]
  }
}

And in the Xcode in the Associated Domains I added

applinks:myDomain.nl

The issue is simple, it will not open the app whenmyDomain.nlrun on safari

I also tried to search for swdc the mac console on the iPhone device, but I found nothing, the logs will be completely empty after searching swdc

would be so appreciated if anyone help me what is the issue here.

Here is more details

I validated the AASA with enter image description here

And

  • "associated domains” capability is enabled for the app
  • I tested this process both from installed app from Xcode and TestFlight
  • The appID in my AASA includes two part -> 1- Team ID from Apple developer platform (see second image) and 2- app bundle identifier from Xcode
    teamID.appBundleIdentifier 

I also run in Terminal

martin@martins-MacBook-Pro ~ % curl --http1.1 -i https://myDomain.nl/.well-known/apple-app-site-association

HTTP/1.0 200 Found
cache-control: no-cache
content-type: application/json

{
  "applinks": {
    "apps": [],
    "details": [
    {
      "appID": "5LKNOW4KJS.app.appname.com", 
      "paths": ["*"]
    }
    ]
  }
}

enter image description here

CodePudding user response:

That third-party AASA validator (https://branch.io/resources/aasa-validator/) is reporting a ≥400 status code. That will prevent the universal links from working. Try opening https://yourdomain.nl/.well-known/apple-app-site-association from curl or a web browser, and see precisely what status code you receive.

Until this error is resolved, universal links will not function correctly. Once you have resolved that AASA server configuration issue, if it is still not working with TestFlight (or ad hoc) archive builds, then review the rest of the configuration (e.g., the implementation of the necessary methods in the app/scene delegates, etc.).

For more information, see See Supporting universal links in your app and Universal Links for Developers.

  • Related