【问题标题】:iOS 9 status bar meta tag and startup image links not workingiOS 9 状态栏元标记和启动图像链接不起作用
【发布时间】:2015-10-06 22:13:03
【问题描述】:

自从将我的 iPhone 5s 更新到 iOS 9 beta 试用版后,我发现状态栏样式元标记和我的独立网络应用程序上的启动图像已经停止工作。它在 iOS8 中运行得非常好,所以我有点困惑。我希望这只是一个可以在最终版本中修复的错误,但我想看看是否有人对可能导致此问题的原因有任何其他建议。

大家有什么想法吗?

        <head>
            <meta charset="utf-8">
            <!-- Viewport -->
            <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
            <meta name="apple-mobile-web-app-capable" content="yes">
            <meta name="mobile-web-app-capable" content="yes">
            <!-- Status bar styles -->
            <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
            <!-- Telephone format detection -->
            <meta name="format-detection" content="telephone=no">
            <!-- Title -->
            <meta name="apple-mobile-web-app-title" content="My App">Stat
            <title>My App</title>

            <!-- Path to Library CSS-->
            <link rel="stylesheet" href="../resources/font-awesome-4.3.0/css/font-awesome.min.css">
            <link rel="stylesheet" href="../resources/bootstrap-3.3.5-dist/css/bootstrap.min.css">
            <link rel="stylesheet" href="../resources/jasny-bootstrap/css/jasny-bootstrap.min.css">

            <!-- Path to your custom app styles-->
            <link rel="stylesheet" href="../css/app.css">

            <!-- Favicons -->
            <link rel="icon" type="image/png" href="http://jupix.com/wp-content/themes/jupix/images/favicons/favicon-32x32.png" sizes="32x32">
            <link rel="apple-touch-icon-precomposed" sizes="57x57" href="http://jupix.com/wp-content/themes/jupix/images/favicons/apple-touch-icon-57x57.png">
            <link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://jupix.com/wp-content/themes/jupix/images/favicons/apple-touch-icon-72x72.png">
            <link rel="apple-touch-icon-precomposed" sizes="120x120" href="http://jupix.com/wp-content/themes/jupix/images/favicons/apple-touch-icon-120x120.png">
            <link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://jupix.com/wp-content/themes/jupix/images/favicons/apple-touch-icon-144x144.png">
            <link rel="apple-touch-icon-precomposed" sizes="152x152" href="http://jupix.com/wp-content/themes/jupix/images/favicons/apple-touch-icon-152x152.png">

            <!-- Startup images -->
            <link rel="apple-touch-startup-image" href="media/img/startup/iphone-6-plus.jpg" media="(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)">
            <link rel="apple-touch-startup-image" href="media/img/startup/iphone-6.jpg" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2)">
            <link rel="apple-touch-startup-image" href="media/img/startup/iphone-5.jpg" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)">

        </head>
        <body>
            <div>HTML Goes Here</div>
            <!-- Scripts -->
            <script type="text/javascript" src="../resources/jquery-1.11.3/jquery-1.11.3.min.js"></script>
            <script type="text/javascript" src="../resources/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>
            <script type="text/javascript" src="../resources/jasny-bootstrap/js/jasny-bootstrap.min.js"></script>
            <script type="application/javascript" src="../resources/fastclick-master/lib/fastclick.js"></script>
            <script type="text/javascript" src="../resources/bouncefix.js-master/dist/bouncefix.min.js"></script>
            <script type="text/javascript" src="../js/app.js"></script>
        </body>
    </html>

【问题讨论】:

  • 这个问题在iOS 9的最终版本中仍然存在。根据苹果开发者论坛this thread的说法,尚未修复。我提交了描述此问题的错误报告 #22735996。
  • 这个烦人的问题有什么更新吗?

标签: ios iphone meta-tags iphone-standalone-web-app ios9


【解决方案1】:

https://forums.developer.apple.com/thread/9819: 终于在 9.2 beta 1 上工作了

【讨论】:

  • 我已经阅读了几次,但在 9.2.1 中问题仍然存在。还有其他人有同样的问题吗?
  • 这在 9.3 中仍然是一个问题吗?
  • 我已经读到它不是,但我正在经历它。无论我为 apple-mobile-web-app-status-bar-style 提供什么价值,我都会得到相同的结果。这令人抓狂。加油苹果。
【解决方案2】:

根据 Apple 开发者论坛,此错误在 iOS 9 中仍然存在。 https://forums.developer.apple.com/thread/9819 已关闭 https://github.com/nolimits4web/Framework7/issues/531

【讨论】:

  • 这方面有什么更新吗?在移动版本上仍然可以看到状态栏非常烦人
猜你喜欢
  • 2012-11-10
  • 2013-01-23
  • 1970-01-01
  • 1970-01-01
  • 2016-01-28
  • 2020-01-13
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多