久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<i id='0MS4K'><tr id='0MS4K'><dt id='0MS4K'><q id='0MS4K'><span id='0MS4K'><b id='0MS4K'><form id='0MS4K'><ins id='0MS4K'></ins><ul id='0MS4K'></ul><sub id='0MS4K'></sub></form><legend id='0MS4K'></legend><bdo id='0MS4K'><pre id='0MS4K'><center id='0MS4K'></center></pre></bdo></b><th id='0MS4K'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='0MS4K'><tfoot id='0MS4K'></tfoot><dl id='0MS4K'><fieldset id='0MS4K'></fieldset></dl></div>
  • <legend id='0MS4K'><style id='0MS4K'><dir id='0MS4K'><q id='0MS4K'></q></dir></style></legend>

    <small id='0MS4K'></small><noframes id='0MS4K'>

    • <bdo id='0MS4K'></bdo><ul id='0MS4K'></ul>
  • <tfoot id='0MS4K'></tfoot>

      1. iOS 6 破壞了 webapps 中的 GeoLocation (apple-mobile-web-

        iOS 6 breaks GeoLocation in webapps (apple-mobile-web-app-capable)(iOS 6 破壞了 webapps 中的 GeoLocation (apple-mobile-web-app-capable))
        • <bdo id='MRCID'></bdo><ul id='MRCID'></ul>
            <tbody id='MRCID'></tbody>

          <small id='MRCID'></small><noframes id='MRCID'>

        • <legend id='MRCID'><style id='MRCID'><dir id='MRCID'><q id='MRCID'></q></dir></style></legend>
          <i id='MRCID'><tr id='MRCID'><dt id='MRCID'><q id='MRCID'><span id='MRCID'><b id='MRCID'><form id='MRCID'><ins id='MRCID'></ins><ul id='MRCID'></ul><sub id='MRCID'></sub></form><legend id='MRCID'></legend><bdo id='MRCID'><pre id='MRCID'><center id='MRCID'></center></pre></bdo></b><th id='MRCID'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='MRCID'><tfoot id='MRCID'></tfoot><dl id='MRCID'><fieldset id='MRCID'></fieldset></dl></div>

              • <tfoot id='MRCID'></tfoot>
                  本文介紹了iOS 6 破壞了 webapps 中的 GeoLocation (apple-mobile-web-app-capable)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我有一個應(yīng)用程序,它執(zhí)行簡單的教科書 navigator.geoLocation.watchPosition(...) 在 iOS 5.x 中運(yùn)行良好,無論是在 Safari 還是作為網(wǎng)絡(luò)應(yīng)用程序(使用 apple-mobile-web-app-capable meta標(biāo)記).

                  I have an app that does a simple textbook navigator.geoLocation.watchPosition(...) that works great in iOS 5.x both in Safari and as a web app (using apple-mobile-web-app-capable meta tag).

                  但是,在 iOS6 中,GeoLocation 在 web 應(yīng)用程序中不起作用.它仍然可以按預(yù)期在 safari 中運(yùn)行,但是當(dāng)我運(yùn)行 webapp 時,它會提示我提供位置許可,然后靜默失敗.我看到了位置圖標(biāo),但 watchLocation 沒有引發(fā)任何事件.我沒有收到錯誤事件或任何位置事件.

                  However, in iOS6, GeoLocation does not work in the webapp. It still works in safari as expected, but when I run the webapp, it prompts me for location permission, then silently fails. I see the location icon, but no events are thrown from watchLocation. I get no error events or any location events.

                  有人遇到過這種情況嗎?任何解決方法?它絕對是特定于 iOS6 的,也特定于 apple-mobile-web-app-capable/webapp.

                  Has anyone run into this? Any workarounds? It's definitely iOS6 specific and also specific to the apple-mobile-web-app-capable/webapp.

                  推薦答案

                  這絕對是一個錯誤,但我找到了解決方法.你不會喜歡這個,但至少它會讓你的網(wǎng)絡(luò)應(yīng)用程序再次運(yùn)行.您需要檢查 User Agent 標(biāo)頭,如果它包含iPhone OS 6",則不要使用:

                  This is definitely a bug but I found a work around. You aren't going to like this but at least it will get your web app working again. You need to examine the User Agent header and if it contains "iPhone OS 6" then do not use:

                  <meta content="yes" name="apple-mobile-web-app-capable" />
                  

                  是的,這意味著它不是真正的網(wǎng)絡(luò)應(yīng)用程序,您將獲得 Safari 頁眉和??頁腳欄.但至少它會讓你的應(yīng)用在主屏幕上再次運(yùn)行.您可以訪問我的網(wǎng)站 www.nextbus.com 了解其工作原理.

                  Yes, this means that it won't be a true web app and you will get the Safari header and footer bars. But at least it will make your app work again from the home screen. You can see how this works by going to my site www.nextbus.com.

                  請注意,Google 似乎遇到了這個問題.嘗試訪問 maps.google.com,然后將網(wǎng)絡(luò)應(yīng)用程序添加到您的主屏幕.地理位置可以解決這個問題,但您確實會看到丑陋的 Safari 頁眉和??頁腳欄.

                  Note that it appears that Google ran into this problem. Try going to maps.google.com and then adding the web app to your homescreen. The geolocation will work for it but you will indeed see the ugly Safari header and footer bars.

                  請向蘋果大聲抱怨!

                  這篇關(guān)于iOS 6 破壞了 webapps 中的 GeoLocation (apple-mobile-web-app-capable)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Help calculating X and Y from Latitude and Longitude in iPhone(幫助從 iPhone 中的緯度和經(jīng)度計算 X 和 Y)
                  CLLocation returning negative speed(CLLocation 返回負(fù)速度)
                  Calculate bearing between two locations (lat, long)(計算兩個位置之間的方位角(緯度、經(jīng)度))
                  watchPosition() vs getCurrentPosition() with setTimeout(watchPosition() 與 getCurrentPosition() 與 setTimeout)
                  Determine iPhone user#39;s country(確定 iPhone 用戶所在的國家)
                  How to geolocalize on custom maps iphone and android(如何在自定義地圖 iphone 和 android 上進(jìn)行地理定位)
                    • <bdo id='4rDP3'></bdo><ul id='4rDP3'></ul>

                      <small id='4rDP3'></small><noframes id='4rDP3'>

                          <tbody id='4rDP3'></tbody>

                          <legend id='4rDP3'><style id='4rDP3'><dir id='4rDP3'><q id='4rDP3'></q></dir></style></legend>
                          <i id='4rDP3'><tr id='4rDP3'><dt id='4rDP3'><q id='4rDP3'><span id='4rDP3'><b id='4rDP3'><form id='4rDP3'><ins id='4rDP3'></ins><ul id='4rDP3'></ul><sub id='4rDP3'></sub></form><legend id='4rDP3'></legend><bdo id='4rDP3'><pre id='4rDP3'><center id='4rDP3'></center></pre></bdo></b><th id='4rDP3'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='4rDP3'><tfoot id='4rDP3'></tfoot><dl id='4rDP3'><fieldset id='4rDP3'></fieldset></dl></div>
                        1. <tfoot id='4rDP3'></tfoot>
                          • 主站蜘蛛池模板: 午夜寂寞影院在线观看 | 97人澡人人添人人爽欧美 | a在线视频 | 一区二区精品视频 | 国产福利在线 | 在线免费观看a级片 | 中文字幕 在线观看 | 四虎免费视频 | 波多野结衣一区二区 | 99国内精品 | 久久久久亚洲 | 欧美高清hd| 日本又色又爽又黄的大片 | 97精品久久| 精品视频一区二区三区在线观看 | 国产欧美一区二区久久性色99 | 亚洲国产成人精品久久久国产成人一区 | 我要看一级片 | 91在线 | 国产日韩精品久久 | 日韩有码一区 | 国产亚洲一区二区三区 | 精品视频在线播放 | 亚洲人在线播放 | 欧美乱大交xxxxx另类电影 | 色婷婷狠狠 | 欧美一区二区三区视频 | 天天干夜夜操 | 99pao成人国产永久免费视频 | 久久se精品一区精品二区 | 亚洲精品永久免费 | 日韩精品视频一区二区三区 | 天天射夜夜操 | 国产在线一区二区三区 | 91网在线观看 | 久久久久久网站 | 国产视频福利一区 | 国产福利91精品 | 欧美福利视频一区 | 久久久www成人免费精品 | 91电影 |