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

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

      <small id='3ihGC'></small><noframes id='3ihGC'>

      1. <tfoot id='3ihGC'></tfoot>
      2. iPhone GPS - 電池消耗極快

        iPhone GPS - Battery Draining Extremely Fast (iPhone GPS - 電池消耗極快)

          • <bdo id='yblAh'></bdo><ul id='yblAh'></ul>

          • <small id='yblAh'></small><noframes id='yblAh'>

            <tfoot id='yblAh'></tfoot>

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

                  本文介紹了iPhone GPS - 電池消耗極快的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我們正在開發一個使用大量 GPS 的應用,我們無法優化電池壽命.

                  We are developing an app that has heavy GPS usage, and we are unable to optimize the battery life.

                  即使設備沒有移動,也會有嚴重的電池消耗,根據代碼,這種情況不應該發生.

                  Even when the device is not moved, there is significant battery drainage that, according to the code, should not happen.

                  代碼如下:

                  locationManager = [[CLLocationManager alloc] init];
                  locationManager.distanceFilter = 100;
                  locationManager.desiredAccuracy = kCLLocationAccuracyHundredMeters;
                  [locationManager startUpdatingLocation];
                  

                  理想情況下,我們希望每 20 分鐘觸發一次 GPS(如果沒有位置變化,則節省電池)或每 5 分鐘觸發一次位置變化.根據我的開發人員的說法,這是無法做到的

                  以前我們使用的是 kCLLocationAccuracyBest,它消耗電池的速度非常快,現在我們使用的是 kCLLocationAccuracyHundredMeters.

                  Previously we were using kCLLocationAccuracyBest, which was consuming battery very fast and now we are using kCLLocationAccuracyHundredMeters.

                  startUpdatingLocation - 是獲取 GPS 坐標.還有另一個調用 startMonitoringSignificantLocationChanges 來獲取 AGPS 坐標,我相信只要蜂窩塔發生變化就會返回坐標,因此會非常快地消耗電池.

                  startUpdatingLocation - is to get the GPS coordinates. There is another call startMonitoringSignificantLocationChanges which is to get AGPS coordinates which I believe returns the coordinates whenever cell tower will change, and hence consumes battery really fast.

                  distanceFilter - 在生成更新事件之前,設備必須橫向移動的最小距離(以米為單位).根據距離過濾器,我們從設備獲取 GPS 定位,然后將更新后的 GPS 坐標發送到服務器.

                  distanceFilter - The minimum distance (measured in meters) a device must move laterally before an update event is generated. On the basis of distance filter we get the GPS fix from the device and then we send the updated GPS coordinates to the server.

                  我們將不勝感激任何幫助謝謝!

                  推薦答案

                  還有另一個調用 startMonitoringSignificantLocationChanges是獲取 AGPS 坐標,我相信它會返回坐標每當手機信號塔發生變化時,因此會真正消耗電池快.

                  There is another call startMonitoringSignificantLocationChanges which is to get AGPS coordinates which I believe returns the coordinates whenever cell tower will change, and hence consumes battery really fast.

                  這正是它的作用,但你會草率地得出關于所需功率的結論.GPS 接收器和 WiFi 收發器可用于幫助確定位置,但它們是額外的設備,必須通電才能使用.但是像 iPhone 這樣的手機無論如何都需要與最近的手機信號塔保持聯系才能接聽電話,因此使用手機信號塔作為位置信息的來源在電力方面應該是非常有效的.以下是 CLLocationManager 參考頁談到-startMonitoringSignificantLocationChanges:

                  That's exactly what it does, but you're jumping to conclusions about the power required for that. The GPS receiver and WiFi transceiver can be used to help determine location, but they're extra devices that have to be powered to be useful. But mobile phones like the iPhone need to keep in touch with the nearest cell tower anyway in order to receive phone calls, so using cell towers as a source of location information should be very efficient with respect to power. Here's what the CLLocationManager reference page says about -startMonitoringSignificantLocationChanges:

                  此接口僅在檢測到對設備的相關蜂窩塔,導致更新頻率降低并顯著降低功耗.

                  它還將該服務描述為提供極大的節能",因此它似乎是您描述的工作的正確工具.當然,如果您同時使用標準位置更新機制,您將看不到節能效果,因此請確保您沒有同時使用這兩種機制.

                  It also describes the service as providing "tremendous power savings," so it seems the right tool for the job you describe. Of course, if you're also using the standard location updating mechanism at the same time you won't see that power savings, so make sure you're not using both.

                  理想情況下,我們希望每 20 分鐘觸發一次 GPS(如果沒有位置更改然后節省電池)或每 5 分鐘(如果有)位置變化.根據我的開發人員的說法,這是無法做到的

                  Ideally we want to trigger GPS every 20 minutes (if there is no location change then save battery) OR every 5 minutes if there is location change. According to my developer this cannot be done

                  這聽起來像是有某種誤解.如果這是您想要的,您當然可以每 20 分鐘啟動一次 GPS 以進行修復,盡管您不能從后臺執行此操作.即使應用程序在后臺運行,重要的位置更改服務也會通知您的應用程序,因此您的開發人員可能正在談論后臺更新.

                  It sounds like there's some sort of misunderstanding here. You can certainly fire up the GPS every 20 minutes to get a fix if that's what you want, although you can't do that from the background. The significant location change service will notify your app even if it's running in the background, so perhaps your developer is talking about background updates.

                  這篇關于iPhone GPS - 電池消耗極快的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  How to animate a UIImageview to display fullscreen by tapping on it?(如何通過點擊動畫 UIImageview 以顯示全屏?)
                  To stop segue and show alert(停止 segue 并顯示警報)
                  iOS 5 storyboard, programmatically determine path(iOS 5 故事板,以編程方式確定路徑)
                  Icon already includes gloss effects(圖標已經包含光澤效果)
                  How does UIEdgeInsetsMake work?(UIEdgeInsetsMake 是如何工作的?)
                  UIProgressView and Custom Track and Progress Images (iOS 5 properties)(UIProgressView 和自定義跟蹤和進度圖像(iOS 5 屬性))
                    <bdo id='sH8t0'></bdo><ul id='sH8t0'></ul>
                    <legend id='sH8t0'><style id='sH8t0'><dir id='sH8t0'><q id='sH8t0'></q></dir></style></legend>

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

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

                          • 主站蜘蛛池模板: aaa国产大片 | 九九看片 | 国产精品日韩欧美一区二区三区 | 一区二区三区中文字幕 | 国产91久久久久蜜臀青青天草二 | 成人aaa视频 | 超碰伊人 | 日韩中文字幕 | 一区二区三区精品视频 | 视频一区二区中文字幕 | 国产精品亚洲一区二区三区在线 | 鸡毛片| 成年人网站免费 | 一区二区三区电影在线观看 | 午夜精品久久久 | 成人做爰9片免费看网站 | 在线91| 久久精品 | 亚洲综合在线网 | 日韩欧美一区二区三区四区 | 亚洲精品国产电影 | 影视先锋av资源噜噜 | 国产午夜在线 | 欧美影院久久 | 日本精品视频在线 | 最新国产视频 | 欧美日在线 | 亚洲精品综合 | 午夜视频网站 | 国产99久久久国产精品下药 | 国产9久| 欧美一卡二卡在线观看 | 国产一区二区三区四区五区加勒比 | 一区二区三区四区日韩 | 视频一区二区在线观看 | 亚洲国产精品一区二区三区 | 一区二区三区四区在线视频 | 五月综合激情网 | 亚洲精品一区二三区不卡 | 一级黄色大片 | 成人免费在线播放视频 |