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>
有什么想法吗?如果Google Chrome在意图过滤器中需要更多的东西?或者一种变通办法。我在多个设备上测试,除了Chrome其他浏览器运行我的应用程序时,我只需输入"onkat://“
观察:我认为Google Chrome在一般情况下不支持Deep Link。即使是Facebook的深度链接也不能在上面工作,而它可以在其他浏览器上工作(fb://)。此外,谷歌chrome深度链接不适用于iOS
发布于 2015-03-25 03:23:24
Chrome已经改变了它处理从Chrome浏览器应用启动的意图的方式。
<a href="intent://scan/#Intent;scheme=zxing;package=com.google.zxing.client.android;end"> Take a QR code </a>
答案可以在这里找到:https://developer.chrome.com/multidevice/android/intents
https://stackoverflow.com/questions/29189172
复制相似问题