title: Workaround for Chrome on Android not firing intent when links are clicked
body: <p>I'm working on an Android app that handles intents for certain http(s) links. It works in most cases, but not for clicks on links in Chrome, due to <a href="https://code.google.com/p/chromium/issues/detail?id=235060" rel="nofollow noreferrer">this bug/missing feature</a>. In short, Chrome doesn't broadcast an intent for those clicks. :/</p>
  
  <p>That may be fixed eventually, but in the meantime, does anyone know a workaround?</p>
  
  <p>If I controlled the links themselves, I could use my own HTTP scheme, e.g. myapp://..., or I could <a href="https://stackoverflow.com/a/13236463/186123">use JavaScript to fake a button click</a>, both of which send the intent...but I don't control the links.</p>
  
  <p>Specifically, I'd like to handle links like <a href="http://github.com/snarfed" rel="nofollow noreferrer">http://github.com/snarfed</a>. My activity's definition in <code>AndroidManifest.xml</code> is below. It correctly receives intent broadcasts for these kinds of link clicks from other apps, just not from Chrome.</p>
  
  <pre><code>&lt;activity android:name="MyApp" android:exported="true"&gt;
    &lt;intent-filter&gt;
      &lt;action android:name="android.intent.action.VIEW" /&gt;
      &lt;category android:name="android.intent.category.DEFAULT" /&gt;
      &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
      &lt;data android:scheme="http" /&gt;
      &lt;data android:scheme="https" /&gt;
      &lt;data android:host="github.com" /&gt;
    &lt;/intent-filter&gt;
  &lt;/activity&gt;
  </code></pre>