【发布时间】:2015-05-25 04:46:25
【问题描述】:
Google Chrome 不会在 Deep Link 上启动我的应用程序,但是,如果我从 Firefox 运行它,该应用程序就会启动。我使用“onkat://”作为示例,因为我只是想先启动应用程序。
以下是我的 AndroidManifest.xml 中的代码
<activity
android:name="MainActivity"
android:configChanges="keyboardHidden|screenSize|orientation"
android:icon="@drawable/something"
android:label="@string/appName"
android:launchMode="singleTask"
android:screenOrientation="user" >
<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="onkat"/>
</intent-filter>
</activity>
有什么想法吗?如果谷歌浏览器在 Intent-filter 中需要更多内容?或解决方法。我在多个设备上进行了测试,除了 Chrome 其他浏览器在我输入“onkat://”时运行我的应用程序
观察:我认为谷歌浏览器一般不支持 Deep Link。即使是 Facebook 深层链接也不能在它上面运行,而它在其他浏览器 (fb://) 上也能运行。此外,谷歌浏览器深度链接不适用于 iOS
【问题讨论】:
-
问题已在 chrome 中修复,我也面临同样的问题。
标签: android google-chrome android-intent deep-linking