简体   繁体   English

Android Instant App深层链接

[英]Android Instant App deep link

I declared the below in feature module.i tested instant app in mobile device it runs successfully.but when I type this url it not lead to instant app.what is procedure to launch instant app from URL. 我在功能模块中声明了以下内容。我在移动设备上测试了即时应用程序,它可以成功运行。但是当我键入此url时,它不会导致即时应用程序。从URL启动即时应用程序的过程是什么。 Thanks in advance 提前致谢

<data
   android:host="abc.cde.com"
   android:pathPattern="/hello"
   android:scheme="https"/>

Taken from the Android Instant Apps code samples on GitHub : 取自GitHub上的Android Instant Apps 代码示例

The Activity you want to address needs an intent filter like this: 您要解决的活动需要一个如下的意图过滤器:

<intent-filter
        android:autoVerify="true"
        android:order="1">
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.BROWSABLE" />
    <category android:name="android.intent.category.DEFAULT" />

    <data android:scheme="https" />
    <data android:scheme="http" />
    <data android:host="hello.instantappsample.com" />
    <data android:pathPrefix="/hello" />
</intent-filter>

Where host and path should match the URL you want to use as entry point for this Instant App's feature. 主机和路径应与要用作此Instant App功能入口点的URL匹配的位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM