Universal Link with query parameter

Hi guys!

I'm using a universal link to match with iOS and Android. I'm trying to open my app when user clicks in a link like this: https://mywebsite.com/?invite=TI878IU

I've tried many different ways to create the file apple-app-site-association. But any of them I could use this parameter directly.

Do you have any guidance in how I could do that?

This is my file:

{
  "applinks": {
    "apps": [],
    "details": [
      {
        "appIDs": [
          "ABC12345AB.com.example.app"
        ],
        "paths": [
          "*"
        ],
        "components": [
          {
            "/": "/*",
            "comment": "Matches any URL with a fragment parameters to open it as universal link"
          },
          {
            "/": "/privacy.html",
            "exclude": true,
            "comment": "Matches any URL with a path that starts with /help/website/ and instructs the system not to open it as a universal link."
          }
        ]
      }
    ]
  }
}
Answered by ForumsContributor in
Accepted Answer

There's no supported way for you to make a Universal Link with a query parameter with the APIs currently available. If you'd like us to consider adding the necessary functionality, please file an enhancement request using Feedback Assistant. Once you file the request, please post the FB number here.

If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why?

Thank you!

Based on your reply I've tried different ways, and could figure out this one:

I've changed the routine to use another URL, like this: https://myapp.com/#/invite/ABC12345. In this way, I could get the information.

Is this before or after app install? Would love to know more about your work around.

Universal Link with query parameter
 
 
Q