Validating an AASA file

1.8k views Asked by At

The 2 following files are supposed to be the same thing (an AASA file), the difference being that the second is meant for more recent versions of iOS.

But according to https://branch.io/resources/aasa-validator/ this first file is OK:

   {
     "applinks": {
         "apps": [],
         "details": [
              {
           "appID": "1234567.mydomain.soft.MyApp",
           "paths": ["*"]
              }
          ]
      },
      "webcredentials": {
         "apps": ["1234567.mydomain.soft.MyApp"]
      }
   }

while this other one is invalid:

   {
     "applinks": {
         "details": [
              {
                "appIDs": [ "1234567.mydomain.soft.MyApp" ],
                "components": [
                  {
                     "/": "/*",
                     "comment": "Matches any URL"
                  }
                ]
              }
          ]
      },
      "webcredentials": {
         "apps": [ "1234567.mydomain.soft.MyApp" ]
      }
   }

Can someone tell me why the second has a problem?

I see this message:

 -- This domain's AASA was pulled, but the JSON format seems Invalid.
1

There are 1 answers

13
congnd On

I'm not sure if it's the root cause or not, but I see some white spaces in your appIDs. Remove those spaces may help you.