android - 如何在应用程序中创建深层链接?

标签 android deeplink

我正在应用程序中工作。需要创建深层链接。用户可以共享特定项目,并且用户可以通过单击链接打开直接页面。我关注enter link description here

 <intent-filter >
          <!--  android:autoVerify="true"-->

       <action android:name="android.intent.action.VIEW" />
       <category android:name="android.intent.category.DEFAULT" />
       <category android:name="android.intent.category.BROWSABLE" />

            <data android:scheme="https"
                android:host="www.jobzminer.com"
                android:pathPrefix="/appplay" />

            <data android:scheme="jobzminer"
                android:host="appplay" />
   </intent-filter>

但是当我将链接放入浏览器时,它不起作用。

最佳答案

如评论中所述,将您的网址更新为:https://www.jobzminer.com/appplay。同时将您的浏览器清除为默认应用程序。

要传递参数,您可以使用查询参数。像这样更改您的网址:https://www.jobzminer.com/appplay?param1=hello¶m2=world

然后在您的 Activity 中。这样做:

Intent intent = getIntent();
Uri data = intent.getData();
String param1 = data.getQueryParameter("param1");
String param2 = data.getQueryParameter("param2");

你也可以看我的回答here .

关于android - 如何在应用程序中创建深层链接?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36280007/

相关文章:

android - Intent 中缺少 'extras' 数据

java - 视频压缩不适用于 ffmpeg4android_lib 库

java - CalendarView 将 MinDate 设置为 setMaxDate

ios - 谷歌应用索引 ios 搜索结果

android - 如果未安装应用程序,使用 Adjust 的延迟深度链接将不起作用

Android - 启动 Intent 问题

ios - 我如何知道应用程序是否通过 AppDelegate didFinishLaunchingWithOptions 处的 Firebase-Deep Link(动态链接)启动

Android App Intent Filter 有时不工作

javascript - 如何使用javascript或html打开手机chrome浏览器

java - Android应用无法在Api 19上打开