自2022年4月以来,Android Deeplink通过Chrome意图破裂

发布于 2025-01-28 01:17:24 字数 1066 浏览 3 评论 0原文

目前,在我们的组织中,我们使用Chrome意图来deeplink应用程序,如果存在应用程序,则可以将其路由到MSITE,但是自2022年4月以来,它都会为所有应用程序打破,并且其中大多数被路由到MSITE。

实现片段

以下是Mailer/SMS中的

,我们发送url https://wwww.deeplink.xyz.com/ fgh

单击上述链接,它需要用户

在后端浏览器浏览器,我们检查某些情况并触发chrome意图,如

xzyapp:// dl?http://www.someurl.com/dl?type = xyz

应用程序内我们添加了DeepLink处理代码,如下以下

<activity
        android:name=".ui.login.LoginActivity"
        android:launchMode="singleTask"
        android:screenOrientation="portrait">

        <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:host="dl"
                android:scheme="xzyapp" />
        </intent-filter>

任何帮助都将被应用

Currently, in our organization we use chrome intent to deeplink app if app is present else it is routed to msite but since aprl 2022 it broke for all apps and most of them are routed to msite.

Below is the implementation snippet

in mailer/sms we send URL

https://www.deeplink.xyz.com/fgh

on click of the above link, it takes users to browser

at backend we check some case and trigger chrome intent as below

xzyapp://dl?HTTP://www.someurl.com/dl?type=xyz

In-App we have added deeplink handling code as below

<activity
        android:name=".ui.login.LoginActivity"
        android:launchMode="singleTask"
        android:screenOrientation="portrait">

        <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:host="dl"
                android:scheme="xzyapp" />
        </intent-filter>

Any help would be appriciated

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文