首页 文章

通用链接是否应该将应用程序重定向到应用程序?

提问于
浏览
0

我想知道通用链接的行为 . 我的困惑源于Apple为通用链接的行为提供的文档:"iOS users can tap a link to your website and get seamlessly redirected to your installed app without going through Safari" . (https://developer.apple.com/library/content/documentation/General/Conceptual/AppSearch/UniversalLinks.html

但是,当我在我的应用程序中单击一个通用链接时,我看到一个重定向到safari,然后是一个消息,“在Spotify应用程序中打开”到应用程序,而不是应用程序到应用程序,如文档建议 .

关于如何点击或点击通用链接的一些背景:我创建了一个应用程序,我正在使用Web视图(WKWebView和UIWebView),当单击它时重定向到指定的URL . 我也在使用openUrl:withOptions:completionHandler: . 我想知道当用户点击我创建的Web视图中的通用链接时会发生什么 .

通用应该直接应用到应用程序?或者,它应该从应用程序到safari(带有“在Spotify应用程序中打开”的消息)到应用程序?

示例1:https://open.spotify.com/artist/6vWDO969PvNqNYHIOW5v0m单击Spotify链接后,我将'm redirected to Safari. After scrolling down the Safari page, I see the message 1423542 with the button 1423543 After clicking 1423544 I'重定向到Spotify应用程序 . 随后单击Spotify链接会产生相同的流程:我的应用程序 - > Safari - >单击"Open" - > Spotify . 我没有直接从我的应用程序重定向到Spotify应用程序

示例2:https://urlgeni.us/spotify/Arty单击urlgeni Spotify链接后,我'm redirected to Safari. A message appears saying 1423548 After waiting a few seconds, I'被重定向到Spotify应用程序(注意:这是在没有我单击"Open"的情况下发生的 . )后续点击urlgeni Spotify链接具有相同的流程:我的应用程序 - > Safari - - > Spotify应用程序

2 回答

  • 0

    直接到应用程序 . 没有在方案中打开应用程序警报 .

    Here theres a u2 video

  • 0

    它应该无缝地应用到应用程序 - 您获得的 Open in 'Spotify'? 消息应该是一次性的标志,然后随后的Spotify的通用链接将是应用程序到应用程序

相关问题