Android 离子电容器:深层链接在其他应用程序中有效,但在 Chrome 中无效

发布于 2025-01-18 20:30:45 字数 1314 浏览 1 评论 0原文

我正在尝试与离子电容器建立深层链接,我以前做过此操作,没有其他应用程序的任何问题,但是我目前正在努力使其正常工作。

我已经在我的androidmanifest.xml中设置了intent-filter

            <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="reporter.ironeko.com" />
            </intent-filter>

我已经生成并从

在我的Android模拟器中,如果我尝试单击消息应用程序中的链接,则可以正常工作。

但是在Chrome中,单击具有相同地址的链接打开网页。

我忘记了什么?这可能是缓存问题吗?

有什么想法吗?

编辑:

因此,我进行了更多的测试,如果您当前使用的域与您要深入链接的域相同,则看起来深链路不起作用。

有什么方法可以解决这个问题吗?

I'm trying to set up deep links with Ionic Capacitor, I've done this before without any problems for other apps however I'm currently struggling with getting it to work.

I've set up intent-filter in my AndroidManifest.xml:

            <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="reporter.ironeko.com" />
            </intent-filter>

I have generated and added the json from Google's page. Testing it also tells me it's been set up correctly.

enter image description here

In my Android emulator, if I try to click the link from the Messages app, it works.

enter image description here

But in Chrome, clicking a link with the same address opens a web page.

enter image description here

Did I forget something? Is this possibly a cache issue?

Any ideas?

EDIT:

So I did some more testing, it looks like deep linking doesn't work if the domain you're currently on is the same as the one you're trying to deep link to.

Is there any way to work around this?

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

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

发布评论

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