android - 如何从手机浏览器打开深层链接?

标签 android performance android-layout android-fragments deep-linking

我为我的应用程序创建了一个深层链接,myapp://video 或者说我还添加了 uber:// 但是当我从 chrome 打开这些链接时浏览器,它带我去谷歌,它不把这个当作一个链接,那么如果它不从浏览器打开,用户将如何到达这个链接的内容。

我试过了,但它打开了谷歌搜索,并没有带我去游戏商店。

请指导我用户如何使用深层链接?并使用深层链接访问该应用。

enter image description here

list

<intent-filter>
    <data android:scheme="myapp" android:host="video/>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.BROWSABLE" />
    <category android:name="android.intent.category.DEFAULT" />
</intent-filter>

最佳答案

Chrome 不会将输入到地址栏中的 URI 方案视为 Activity 链接。你需要把它放在 <a> 里面元素。

请注意,虽然这可行,但它不是有效的深层链接解决方案。您应该研究 Chrome Intents,或像 Branch.io 这样的完整深度链接系统。 (完全披露:我在 Branch 团队)或 Firebase 动态链接。

关于android - 如何从手机浏览器打开深层链接?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42271519/

相关文章:

java - 缓冲图像 : Performance of fillRect/drawImage with transparent color/image

c++ - 在 C++ 中进行实验时,测量某些函数的 cpu 时间的最佳方法是什么?

android - 管理 Android 布局,一定有更好的方法

Android studio - 可以复制布局

java - 无法解析帮助​​程序类中的 getSupportFragmentManager()

android - 管理多个按钮选择器?

JavaScript 基本问题

android - 拥有手机和平板电脑布局

android - 果冻 bean 锁屏小部件

android - 在运行时创建的 Robolectric 测试中加载文件/ Assets