iosdeep-linkingios-universal-linksapplinksaasa

how to add support for "?" (query) in path for apple-app-site-association file?


"apple-app-site-association" file content:

{

    "appclips": {
        "apps": ["**********.com.project.example.Clip"]
    },
    "applinks": {
        "apps": ["**********.com.project.example"],
        "details": [
          {
            "appID": "**********.com.project.example",
            "paths": [ "/event/*", "/ticket?v=*" ]
          }
        ]
    }
}

File is already set at "https://< fully qualified domain>/.well-known/apple-app-site-association"

problem I'm facing is that it is working for

"https://< fully qualified domain>/event/EVENT-ID",

but it is not invoking app for

"https://< fully qualified domain>/ticket?v=VOLUME-ID"

Is it because of "?" or I'm missing some thing?


Solution

  • We need to use components array

     "components": [  
         {
             "/": "/help/*",
             "?": { "articleNumber": "????" },
             "comment": "blah blah"
         }
     ]
    

    Please refer https://developer.apple.com/documentation/xcode/supporting-associated-domains