自2022年4月以来,Android Deeplink通过Chrome意图破裂
目前,在我们的组织中,我们使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论