应用程序链接无法在浏览器中运行

时间:2018-06-07 16:09:03

标签: android applinks

在我的项目中有网站,android和ios应用程序。相同的链接应适用于每个平台。

例如,我希望我的应用打开链接https://workee.co/jobs/?id=5ab11f9ad57f0f19e0d8bf81

我已按照此处所述实施了应用链接:https://developer.android.com/studio/write/app-link-indexing

我已将intent-filter添加到AndroidManifest.xml

            <intent-filter
            android:autoVerify="true"
            tools:targetApi="m">
            <action android:name="android.intent.action.VIEW"/>
            <category android:name="android.intent.category.DEFAULT"/>
            <category android:name="android.intent.category.BROWSABLE"/>
            <!-- Accepts URIs that begin with "https://workee.co/jobs” -->
            <data
                android:host="workee.co"
                android:pathPrefix="/jobs"
                android:scheme="https"/>
        </intent-filter>

然后我将assetlinks.json文件上传到我的网站。

在Viber和Telegram等应用程序中一切正常,但是当我点击Chrome和Firefox浏览器中的链接时,它无法正常工作。它显示了系统对话框,用于选择我想要打开此链接的应用程序,并且那里没有我的应用程序。它在Skype中也不起作用:我的链接由Skype自己打开。

UPD :我发现此问题仅适用于具有HTC Sence,OxygenOS等套件的设备。在使用纯Android的设备上,它可以正常运行。

0 个答案:

没有答案
相关问题