gpt4 book ai didi

Android深度链接: match url only when no path

转载 作者:行者123 更新时间:2023-12-02 12:09:18 25 4
gpt4 key购买 nike

给定以下 URL:

1. www.example.com

2. www.example.com/a

通过 deeplinking ,我希望我的应用程序仅对 1 使用react,而 2 使用react。

            <data
android:host="*.example.com"
android:pathPrefix="/"
android:scheme="http"/>

这当然会捕获所有 www.example.com/... url,我如何才能仅匹配 www.example.com 而没有任何路径和与 www.example.com/a 不匹配?

最佳答案

这对我有用,将路径设置为空并包含一个工具:忽略以避免 lint 错误。

<data
android:host="*.example.com"
android:path=""
android:scheme="http"
tools:ignore="AppLinkUrlError"
/>

关于Android深度链接: match url only when no path,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39266555/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com