title: Ionic Android App Links (deeplink)
body: <p>I'm setting up deeplinking, specifically <a href="https://developer.android.com/training/app-links/verify-site-associations.html" rel="nofollow noreferrer">App links</a> and so far, when a user enters the desired url <code>https://myapp.com</code> and they have the app installed (the app has been signed), it only opens in the browser.</p>
  
  <p>I've been able to setup custom URL scheme works well <code>myappcustom://app</code> works as expected if the user has the app installed.</p>
  
  <p>The verification for the domain is available at <code>https://myapp.com/.well-known/assetlinks.json</code> without redirection</p>
  
  <pre><code>[{
    "relation": ["delegate_permission/common.handle_all_urls"],
    "target": {
      "namespace": "android_app",
      "package_name": "com.slatedev.notis",
      "sha256_cert_fingerprints":
      ["E5:64:86:D6:EE:F8:1B:72:2F:55:B0:21:98:8B:0B:C8:C5:22:D4:98:08:7E:61:23:B1:A5:6A:1B:68:E0:C0:71"]
    }
  }]
  </code></pre>
  
  <p>I know that the file must be accessible with the following constraints from the <a href="https://developer.android.com/training/app-links/verify-site-associations.html" rel="nofollow noreferrer">Android Verification Webpage</a></p>
  
  <ol>
  <li>The assetlinks.json file is served with content-type application/json.
  <strong><em>I've verified that the header is returning this content-type</em></strong></li>
  <li>The assetlinks.json file must be accessible over an HTTPS connection, regardless of whether your app's intent filters declare HTTPS as the data scheme. <strong><em>The file is available over https</em></strong></li>
  <li>The assetlinks.json file must be accessible without any redirects (no 301 or 302 redirects) and be accessible by bots (your robots.txt must allow crawling /.well-known/assetlinks.json).<strong><em>There shouldn't be any redirect with a direct <a href="https://myapp.com" rel="nofollow noreferrer">https://myapp.com</a> access.  I'm assuming that robots can access the url since I haven't setup a robots.txt file to prevent access at this point</em></strong></li>
  <li>If your app links support multiple host domains, then you must publish the assetlinks.json file on each domain. See Supporting app linking for multiple hosts.<strong><em>Doesn't support multiple host domains</em></strong></li>
  <li>Do not publish your app with dev/test URLs in the manifest file that may not be accessible to the public (such as any that are accessible accessible only with a VPN). A work-around in such cases is to configure build variants to generate a different manifest file for dev builds. <strong><em>while there are multiple domains listed (beta and production domains) but they are available to the public</em></strong></li>
  </ol>
  
  <p>I'm trying to figure out what might be the issue. Does <code>myapp.com</code> also need to be available without redirect? I would assume if I'm connecting with the https:// link that it wouldn't be an issue but maybe the robots that hit the verification don't use the https version of the link? </p>
  
  <p>Any ideas what may be preventing the app links from connecting?</p>