我们正在将App Links集成到我们的游戏中,到目前为止,在谷歌Android上一切都运行良好 . 这就是我们如何进行intent过滤:

<!-- App Links -->
<activity android:launchMode="standard">
    <intent-filter>
        <action android:name="android.intent.action.MAIN"/>
        <category android:name="android.intent.category.LAUNCHER"/>
    </intent-filter>

    <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" android:host="www.example.com" android:pathPrefix="/example.html" />
        <data android:scheme="https" android:host="www.example.com" android:pathPrefix="/example.html" />

        <data android:scheme="example" />
    </intent-filter>
</activity>

在Google Play设备上,这将打开我们的应用,以便在浏览器中点击的任何链接看起来像 example://http://www.example.com/example.htmlhttps://www.example.com/example.html

然而,在亚马逊Kindle设备上使用相同的意图过滤器,Silk浏览器将只打开看起来像_1685860的链接,其他2个,更现代的方法被忽略并在浏览器中打开,就像我们的应用程序没有安装一样 . 我们是否遗漏了某些内容,或者Kindle设备不支持现代网址方案?

我们的测试设备运行Fire OS 5.1.2