如何强制通过Universal Link在Swift中打开应用程序喜欢Apple的应用程序(注意,Safari,..)

发布于 2025-01-27 05:35:14 字数 535 浏览 5 评论 0原文

我遇到了通用链接的一个问题,该问题一旦Safari打开了通用链接,它就无法通过其应用程序打开。

似乎iOS确实记得打开链接的最后一个应用程序。

但是,当我将链接复制到iOS Notes应用程序中时,长印刷,选择在“应用程序名称” 中打开,问题就消失了! (检查屏幕截图)

  1. 有人知道如何强制打开像iOS Notes应用这样的应用吗?
  2. 还是有人知道如何检查iOS野生动物园是否已记住URL?

我确实尝试了 open(_:_:options:options:ploteHandler:pleastionhandler: ;特定选项[。vixesallinksonly:true],但它不起作用,

谢谢所有

I run into an issue with Universal Link that once the Universal Link is opened by Safari, it won't able to open by its app.

Seem iOS does remember the last app used to open the link.

But when I copy the link into iOS Notes app, long-press, select Open in "App Name" and the issue is gone! (Check the screenshot)

  1. Does anybody know how to force to open an app like iOS Notes app?
  2. Or does anybody know how to check whether the URL has been remembered to open by Safari by iOS?

I did try by open(_:options:completionHandler:) & specific options [.universalLinksOnly: true] but it doesn't work

Thanks all ????????

enter image description here

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

摘星┃星的人 2025-02-03 05:35:14

this 可能会有所帮助。

当用户在Safari中浏览您的网站并在同一域中敲击通用链接时,系统将打开该链接中的链接,从而尊重用户最有可能在浏览器中继续进行的意图。如果用户点击了另一个域中的通用链接,则系统将在应用程序中打开链接。

This article may help.

When a user browses your website in Safari and taps a universal link in the same domain, the system opens that link in Safari, respecting the user’s most likely intent to continue within the browser. If the user taps a universal link in a different domain, the system opens the link in your app.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文