久久久久久久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)的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  我有一個(gè)應(yīng)用程序,它執(zhí)行簡(jiǎn)單的教科書(shū) navigator.geoLocation.watchPosition(...) 在 iOS 5.x 中運(yùn)行良好,無(wú)論是在 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 時(shí),它會(huì)提示我提供位置許可,然后靜默失敗.我看到了位置圖標(biāo),但 watchLocation 沒(méi)有引發(fā)任何事件.我沒(méi)有收到錯(cuò)誤事件或任何位置事件.

                  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.

                  有人遇到過(guò)這種情況嗎?任何解決方法?它絕對(duì)是特定于 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.

                  推薦答案

                  這絕對(duì)是一個(gè)錯(cuò)誤,但我找到了解決方法.你不會(huì)喜歡這個(gè),但至少它會(huì)讓你的網(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è)眉和??頁(yè)腳欄.但至少它會(huì)讓你的應(yīng)用在主屏幕上再次運(yùn)行.您可以訪問(wè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.

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

                  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.

                  請(qǐng)向蘋(píng)果大聲抱怨!

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

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

                  相關(guān)文檔推薦

                  Help calculating X and Y from Latitude and Longitude in iPhone(幫助從 iPhone 中的緯度和經(jīng)度計(jì)算 X 和 Y)
                  CLLocation returning negative speed(CLLocation 返回負(fù)速度)
                  Calculate bearing between two locations (lat, long)(計(jì)算兩個(gè)位置之間的方位角(緯度、經(jīng)度))
                  watchPosition() vs getCurrentPosition() with setTimeout(watchPosition() 與 getCurrentPosition() 與 setTimeout)
                  Determine iPhone user#39;s country(確定 iPhone 用戶所在的國(guó)家)
                  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>
                          • 主站蜘蛛池模板: 亚洲一区免费视频 | 九九热在线观看 | 国产精品高潮呻吟久久久久 | 中文字幕一区二区三区精彩视频 | 久久精品一级 | 日韩a视频 | 久久久久久久久久爱 | 欧美日韩一区在线播放 | 色99视频| 无码国模国产在线观看 | 久久99精品久久久久久琪琪 | 中文字字幕在线中文乱码范文 | 国内精品在线视频 | 中文字幕av网址 | 国产九一精品 | 天天综合久久网 | 91久久国产综合久久 | av片免费 | 欧美一级艳情片免费观看 | 98久久 | 欧美精品一区二区三区在线 | 日本一区二区不卡 | 曰韩三级 | 日韩中文字幕在线播放 | 日韩欧美中文在线 | 黑人粗黑大躁护士 | 亚洲视频在线观看免费 | 午夜精品久久久久久久星辰影院 | 欧美中文字幕一区二区三区亚洲 | 成人一区二区三区在线 | 91在线电影 | 91免费看片神器 | 欧美黑人激情 | 国产不卡在线观看 | 中文字幕11页| 1级毛片 | 色橹橹欧美在线观看视频高清 | 日本小视频网站 | 一呦二呦三呦国产精品 | 久久久久国产精品 | 91一区二区三区在线观看 |