Android 离子电容器:深层链接在其他应用程序中有效,但在 Chrome 中无效
我正在尝试与离子电容器建立深层链接,我以前做过此操作,没有其他应用程序的任何问题,但是我目前正在努力使其正常工作。
我已经在我的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.
In my Android emulator, if I try to click the link from the Messages app, it works.
But in Chrome, clicking a link with the same address opens a web page.
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 技术交流群。

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