简体   繁体   English

iOS 中的不同智能横幅

[英]Different smart banners in iOS

I've noticed fairly recently that certain websites on iOS seem to get a more persistent smart banner from Apple.我最近注意到 iOS 上的某些网站似乎从 Apple 获得了更持久的智能横幅。 For example on twitter.com and facebook.com I see smart banners like this:例如在 twitter.com 和 facebook.com 我看到这样的智能横幅: 脸书截图

Note how the smart banner doesn't have the usual close cross on the left (and it's slightly shorter than the normal one).请注意智能横幅如何在左侧没有通常的闭合十字(并且它比普通横幅略短)。

I've looked at the page code and neither twitter or facebook have the meta tag with their app-id linked.我查看了页面代码,但 twitter 或 facebook 都没有链接其应用程序 ID 的元标记。

So my question is how did they get these banners?所以我的问题是他们是如何获得这些横幅的? Is this just something Apple has decided to add on their behalf due to the popularity of their sites / apps?由于其网站/应用程序的流行,这只是 Apple 决定代表他们添加的内容吗? Or is there some secret config you can add to a site to get these special banners?或者是否有一些秘密配置可以添加到站点以获取这些特殊横幅?

Smart App Banners are dynamic.智能应用横幅是动态的。 They are different depending on whether you already have the app installed or not.它们会有所不同,具体取决于您是否已经安装了该应用程序。 If the app is not installed yet, the big banner with the close button is displayed.如果尚未安装该应用程序,则会显示带有关闭按钮的大横幅。 If the app is already installed, the banner from your screenshot will be displayed.如果已安装该应用程序,则会显示屏幕截图中的横幅。

You can find a detailed description about that on the Apple Developer Documentation .您可以在Apple Developer Documentation上找到关于它的详细描述。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM