无法通过Gmail应用打开深度链接

时间:2019-08-19 20:00:33

标签: android gmail android-deep-link

我收到了gmail上的链接,每当我们单击该链接时,我都想打开我的应用程序。 如果我单击该链接,它将在网站上打开(不在应用程序中),但是如果我复制该链接并在浏览器中打开它,则可以选择该应用程序。

<intent-filter android:label="@string/app_name">

            <action android:name="android.intent.action.VIEW" />

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

            <data
                android:host="agora-frontend.herokuapp.com"
                android:scheme="https" />

        </intent-filter>
        <intent-filter android:label="@string/app_name">
            <action android:name="android.intent.action.VIEW" />

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

            <data
                android:host="agora-frontend.herokuapp.com"
                android:scheme="http" />

        </intent-filter>
        <intent-filter android:label="@string/app_name">
            <action android:name="android.intent.action.VIEW" />

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

            <data
                android:host="agora-frontend.herokuapp.com"
                android:scheme="app" />

        </intent-filter>

我要打开的链接是 https://agora-frontend.herokuapp.com/vote/xxxxxxxxxx/xxxxxxxxxxxxxxxxxxx

每当我们通过gmail单击该链接时,我都想打开我的应用。

0 个答案:

没有答案
相关问题