Can I force Gmail's Chrome Custom Tab to handle a deeplink

Viewed 403

AndroidManifest.xml

<activity android:name=".MyUrlDeepLinkActivity">
    <intent-filter>
        <action android:name="android.intent.action.VIEW" />

        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />

        <data android:scheme="http" />
        <data android:scheme="https" />
        <data android:host="my.site.com" />
        <data android:pathPattern="/whatever" />
    </intent-filter>
</activity>

bit.ly/2htafii redirects to my.site.com/whatever.

Gmail on a Nougat device redirects bit.ly/2htafii to my.site.com/whatever within a Chrome Custom Tab, but doesn't register as a deeplink.

Is there a way to ensure that the deeplink will get picked up after a redirect from within Gmail, without requiring the user to turn off "Open web links in Gmail"?

0 Answers
Related