iOS9通用链接不适用于Safari

iOS9通用链接不适用于Safari

本文介绍了iOS9通用链接不适用于Safari,但适用于其他应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在为客户端实现iOS9通用链接.

I'm currently implementing iOS9 universal links for a client.

遵循苹果文档和一些 ,我使用测试链接网页成功地使它几乎可以在第一次尝试中使用来自Safari.

After following apple doc and some good tutorials, I succeeded to make it working almost on the first try, using a test links webpage from Safari.

但是突然之间,所有测试链接都不再起作用了!一天结束时,我一直没有找到答案,直到今天早晨,当我试图从Chrome应用程序中打开这些测试链接时,它仍然有效.

But suddently, none of the test links were working anymore! I searched around during the end of the day with no answer, until this morning when I tried to open those test links from Chrome app: that worked again.

昨天,它工作正常让我感到非常困惑,并且发生了某些事情,导致Safari无法显示该应用程序,而是显示了网站(未更改源代码/服务器代码)

I'm very puzzled by the fact it worked perfectly yesterday, and something happened preventing Safari to present the app, displaying the website instead (No source/server code changed)

我怀疑自己单击了上方的 right 快捷方式(具有网站访问权限的快捷方式),并且我怀疑Safari保存了此选择. (以重新启动手机并删除Safari缓存为口)

I suspect myself to have clicked on the upper right shortcut (the one with the website access), and I suspect Safari to have saved this choice. (In spit of rebooting my phone and deleting Safari cache)

有人对发生的事情有任何线索吗?

Do anyone have any clue on what happened?

如果Safari确实保存了我单击右上角按钮的事实,是否有办法让它忘记?

If Safari did really save the fact I clicked on the upper right button, is there a way to make it forget?

推荐答案

好的.

St.derrick的答案非常有趣,但他的评论之一甚至更多:

St.derrick answer is very interresting, but one of his comment is even more:

我怀疑,通过点击导航栏"mysite.com"的右上角,iOS会在您访问该URL时停止打开该应用程序.

As I suspected, by tapping on the top right corner of the navigation bar "mysite.com", iOS stops opening the app when you visit that URL.

要恢复初始行为,iOS会在网页(mysite.com)上添加一个标题(最初是隐藏的),并带有打开应用程序"选项.

To restore the initial behavior, iOS adds a header (initially hidden) on the webpage (mysite.com), with the "open app" option.

不幸的是,我没有找到有关此行为的任何官方文档,这确实会使我们发疯.

Unfortunately, I didn't find any official documentation about this behavior, which can literally drive us crazy.

这篇关于iOS9通用链接不适用于Safari,但适用于其他应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 09:31