title: Apple-app-site-association is not working
body: <p>I have implemented <code>apple-app-site-association</code> for deep linking with my iOS app.<br> I have created the .JSON file without extension and placed to my website's root directory. <br>Now, I can see the file as <a href="https://example.com/apple-app-site-association" rel="noreferrer">https://example.com/apple-app-site-association</a> on any browser.</p>
  
  <p>Following is the json body inside the apple-app-site-association file -</p>
  
  <pre><code>{
      "applinks": {
          "apps": [],
          "details": [
              {
                  "appID": "AppID.bundleIdentifier",
                  "paths": [ "*"]
              }
          ]
      }
  }
  </code></pre>
  
  <p>FYI I have added following inside my website's(angular.js) .htaccess - </p>
  
  <pre><code>&lt;FilesMatch "^apple-app-site-association$"&gt; ForceType application/json &lt;/FilesMatch&gt;
  </code></pre>
  
  <p>I have already enabled the "Associated Domain" in both Xcode and developer.apple.com.<br>But, when I am trying to install a new build, its not working.<br>By digging into the device log, I am getting the following error.<br> <br>Please take look and assist me about what I am doing wrong.</p>
  
  <blockquote>
    <p>[SWC] ### Bad apple-app-site-association JSON: Error
    Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with
    array or object and option to allow fragments not set."
    UserInfo={NSDebugDescription=JSON text did not start with array or
    object and option to allow fragments not set.}</p>
  </blockquote>