【发布时间】:2019-11-21 12:37:14
【问题描述】:
我的目标是在用户单击链接时打开我的 android 应用程序,例如我已共享特定项目链接 (http://example.com/api_shirts.php?utmsource=shirt98),然后如果用户已经安装了我的应用程序,则在浏览器上打开它的其他地方打开它。
我搜索了很多并得到了this,但它对我不起作用
<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" />
<data android:scheme="https"
android:host="www.example.com"/>
</intent-filter>
【问题讨论】:
-
这称为Deep linking。有一个 similar question 关于这个
-
可以通过分支io实现深度链接,查看docs.branch.io/apps/android
-
@ArthurAttout 谢谢,但它显示为提示如何将其设为默认值