Banka Uday
Banka Uday

Reputation: 1

universal link with query parameters is not working (IOS)

I have configured AASA file to support path such as https://domain/forgot-password?token=asadsad3ddsd. It is not opening in browser nor app.

do we need to configure something in flutter app delegate to support query parameters.

I have tried different iterations to support the above url. iteration 1 : components : [ { "/" : "/forgot-password" , "?" : { "token" : "?} ] iteration 2 : components : [ { "/" : "" } ] iteration 3 : components : [ { "/" : "/forgot-password" , "?" : { "token" : "?????..." } ] my token is of length 36. so I have kept 36 question marks.

can u help me with how to support a universal link with query parameters incase of iOS. what are configuration need to be done on flutter, apple side to support the above link.

Upvotes: 0

Views: 453

Answers (1)

kalimsayyed
kalimsayyed

Reputation: 1142

I faced this issue initially and figured out the solution. In your case it should be as below

{
  "appIDs": [
    "SampleTeamID.SampleBundleId"
  ],
  "components": [
    {
      "/": "/forgot-password",
      "?": {
        "token": "?*"
      },
      "comment": "Matches any URL with a path that starts with /forgot-password and that has a query item with name token with any value"
    }
  ]
}

Upvotes: 0

Related Questions