深度链接不适用于 Android 中的某些消息应用程序
我正在开发一个安卓应用程序。
它使用 AppsFlyer 的 Onelink 类型的 Deeplink。
我设置并测试过,总体来说,效果很好。 当我使用 Android studio 测试这个时,它工作正常
当我用 Slack Messenger 测试这个时,它也工作得很好。
但如果我用其他消息应用程序测试它,它不起作用,只需打开网络浏览器即可。
我不知道为什么以及如何解决它。
<intent-filter
android:autoVerify="true"
android:label="@string/app_name">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="mylink.com"
android:pathPrefix="/path"
android:scheme="https" />
</intent-filter>
I am developing an android app.
It uses AppsFlyer's Onelink kind of a Deeplink.
I set up and tested, in general, it works fine.
When I tested this using Android studio, it works fine
When I tested this with Slack messenger, it works fine too.
But If I test this with other messaging apps, it doesn't work, and just open the web browser.
I don't know why and how to fix it.
<intent-filter
android:autoVerify="true"
android:label="@string/app_name">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="mylink.com"
android:pathPrefix="/path"
android:scheme="https" />
</intent-filter>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要使深层链接在 Android 12 中正常工作,您需要使用
autoVerify="true"
创建intent-filters
并在以下位置托管数字资产链接 JSON您的网站位于以下位置,以声明您的意图过滤器与网站之间的关联。
assertlinks.json
应包含以下信息您可以使用 java 密钥工具生成
sha256_cert_fingerprints
如果您使用 Play 应用签名,您可以找到数字资产链接 JSON< /strong> 代码片段位于以下位置 Release >设置>应用程序完整性
For deep linking to work in Android 12, you need to create
intent-filters
withautoVerify="true"
Host a Digital Asset Links JSON on your website at the below location to declare the association between your intent filters and the website.
assertlinks.json
should contain the following informationYou can generate
sha256_cert_fingerprints
using java key toolIf you're using Play App Signing, You can find Digital Asset Links JSON snippet at the following location Release > Setup > App Integrity