title: App Transport Security blocks routing via custom url scheme
body: <p>My iOS app (written in Swift and React Native) has a custom url scheme that allows me to route to the app from e.g. Safari like this <a href="http://myappscheme://https://www.mywebsite.com/somematerial" rel="nofollow noreferrer">myappscheme://https://www.mywebsite.com/somematerial</a>. If I enable App Transport Security in my app, the routing via custom url scheme is blocked and I get this message:</p>
  
  <blockquote>
    <p>App Transport Security has blocked a cleartext HTTP (http://) resource
    load since it is insecure. Temporary exceptions can be configured via
    your app's Info.plist file.</p>
  </blockquote>
  
  <p>However, if I disable ATS, the app routes as expected. I am not accessing any link via http in my app and in my routing I always fetch data via https. Therefore, I don't know why ATS is blocking this routing. Do you know if I have to provide some additional info about my url scheme?</p>
  
  <p>Please see my ATS configurations in Info.plist:</p>
  
  <pre><code>&lt;key&gt;NSAppTransportSecurity&lt;/key&gt;
  &lt;dict&gt;
      &lt;key&gt;NSAllowsArbitraryLoadsInWebContent&lt;/key&gt;
      &lt;true/&gt;
      &lt;key&gt;NSExceptionDomains&lt;/key&gt;
      &lt;dict&gt;
          &lt;key&gt;localhost&lt;/key&gt;
          &lt;dict&gt;
              &lt;key&gt;NSIncludesSubdomains&lt;/key&gt;
              &lt;true/&gt;
              &lt;key&gt;NSTemporaryExceptionAllowsInsecureHTTPLoads&lt;/key&gt;
              &lt;true/&gt;
          &lt;/dict&gt;
      &lt;/dict&gt;
  &lt;/dict&gt;
  </code></pre>
  
  <p>I've also whitelisted my custom url scheme:</p>
  
  <pre><code>&lt;key&gt;LSApplicationQueriesSchemes&lt;/key&gt;
  &lt;array&gt;
      &lt;string&gt;myappscheme&lt;/string&gt;
  &lt;/array&gt;
  </code></pre>