CustomTabs shows ERR_UNKNOWN_URL_SCHEME after 302 Redirect : <p>I'm trying to implement OAuth2 login flow using Custom Tabs, but after login has been successful a 302 Redirect is retrieved with url as the following: "my.app:/oauth2/code?xxx".</p>

<p>Now I have declared redirect URI in AndroidManifest to listen to this, but ERR_UNKNOWN_URL_SCHEME is seen :/</p>

<pre><code>&lt;intent-filter&gt;
            &lt;data
                android:host="oauth2"
                android:scheme="my.app"
                android:pathPrefix="/code"
            /&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;/intent-filter&gt;
</code></pre>

<p>I've tried different url-schemes to listen to, but none seems to be triggered to open my app.</p>
