pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

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

                  問(wèn)題描述

                  限時(shí)送ChatGPT賬號(hào)..

                  我們正在開發(fā)一個(gè)使用大量 GPS 的應(yīng)用,我們無(wú)法優(yōu)化電池壽命.

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

                  即使設(shè)備沒有移動(dòng),也會(huì)有嚴(yán)重的電池消耗,根據(jù)代碼,這種情況不應(yīng)該發(fā)生.

                  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 分鐘觸發(fā)一次 GPS(如果沒有位置變化,則節(jié)省電池)或每 5 分鐘觸發(fā)一次位置變化.根據(jù)我的開發(fā)人員的說(shuō)法,這是無(wú)法做到的

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

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

                  startUpdatingLocation - 是獲取 GPS 坐標(biāo).還有另一個(gè)調(diào)用 startMonitoringSignificantLocationChanges 來(lái)獲取 AGPS 坐標(biāo),我相信只要蜂窩塔發(fā)生變化就會(huì)返回坐標(biāo),因此會(huì)非常快地消耗電池.

                  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 - 在生成更新事件之前,設(shè)備必須橫向移動(dòng)的最小距離(以米為單位).根據(jù)距離過(guò)濾器,我們從設(shè)備獲取 GPS 定位,然后將更新后的 GPS 坐標(biāo)發(fā)送到服務(wù)器.

                  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.

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

                  推薦答案

                  還有另一個(gè)調(diào)用 startMonitoringSignificantLocationChanges是獲取 AGPS 坐標(biāo),我相信它會(huì)返回坐標(biāo)每當(dāng)手機(jī)信號(hào)塔發(fā)生變化時(shí),因此會(huì)真正消耗電池快.

                  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.

                  這正是它的作用,但你會(huì)草率地得出關(guān)于所需功率的結(jié)論.GPS 接收器和 WiFi 收發(fā)器可用于幫助確定位置,但它們是額外的設(shè)備,必須通電才能使用.但是像 iPhone 這樣的手機(jī)無(wú)論如何都需要與最近的手機(jī)信號(hào)塔保持聯(lián)系才能接聽電話,因此使用手機(jī)信號(hào)塔作為位置信息的來(lái)源在電力方面應(yīng)該是非常有效的.以下是 CLLocationManager 參考頁(yè)談到-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:

                  此接口僅在檢測(cè)到對(duì)設(shè)備的相關(guān)蜂窩塔,導(dǎo)致更新頻率降低并顯著降低功耗.

                  它還將該服務(wù)描述為提供極大的節(jié)能",因此它似乎是您描述的工作的正確工具.當(dāng)然,如果您同時(shí)使用標(biāo)準(zhǔn)位置更新機(jī)制,您將看不到節(jié)能效果,因此請(qǐng)確保您沒有同時(shí)使用這兩種機(jī)制.

                  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 分鐘觸發(fā)一次 GPS(如果沒有位置更改然后節(jié)省電池)或每 5 分鐘(如果有)位置變化.根據(jù)我的開發(fā)人員的說(shuō)法,這是無(wú)法做到的

                  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

                  這聽起來(lái)像是有某種誤解.如果這是您想要的,您當(dāng)然可以每 20 分鐘啟動(dòng)一次 GPS 以進(jìn)行修復(fù),盡管您不能從后臺(tái)執(zhí)行此操作.即使應(yīng)用程序在后臺(tái)運(yùn)行,重要的位置更改服務(wù)也會(huì)通知您的應(yīng)用程序,因此您的開發(fā)人員可能正在談?wù)摵笈_(tái)更新.

                  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.

                  這篇關(guān)于iPhone GPS - 電池消耗極快的文章就介紹到這了,希望我們推薦的答案對(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)文檔推薦

                  How to animate a UIImageview to display fullscreen by tapping on it?(如何通過(guò)點(diǎn)擊動(dòng)畫 UIImageview 以顯示全屏?)
                  To stop segue and show alert(停止 segue 并顯示警報(bào))
                  iOS 5 storyboard, programmatically determine path(iOS 5 故事板,以編程方式確定路徑)
                  Icon already includes gloss effects(圖標(biāo)已經(jīng)包含光澤效果)
                  How does UIEdgeInsetsMake work?(UIEdgeInsetsMake 是如何工作的?)
                  UIProgressView and Custom Track and Progress Images (iOS 5 properties)(UIProgressView 和自定義跟蹤和進(jìn)度圖像(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="0oue20q" 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'>

                          • 主站蜘蛛池模板: 购买舔盐、舔砖、矿物质盐压块机,鱼饵、鱼饲料压块机--请到杜甫机械 | 家用净水器代理批发加盟_净水机招商代理_全屋净水器定制品牌_【劳伦斯官网】 | 南京雕塑制作厂家-不锈钢雕塑制作-玻璃钢雕塑制作-先登雕塑厂 | 铁素体测量仪/检测仪/铁素体含量测试仪-苏州圣光仪器有限公司 | 直齿驱动-新型回转驱动和回转支承解决方案提供商-不二传动 | 引领中高档酒店加盟_含舍·美素酒店品牌官网 | 送料机_高速冲床送料机_NC伺服滚轮送料机厂家-东莞市久谐自动化设备有限公司 | 九州网址_专注于提供网址大全分享推广中文网站导航服务 | 电子海图系统-电梯检验系统-智慧供热系统开发-商品房预售资金监管系统 | 锂离子电池厂家-山东中信迪生电源 | 河南橡胶接头厂家,河南波纹补偿器厂家,河南可曲挠橡胶软连接,河南套筒补偿器厂家-河南正大阀门 | 联系我们-腾龙公司上分客服微信19116098882 | 合肥宠物店装修_合肥宠物美容院装修_合肥宠物医院设计装修公司-安徽盛世和居装饰 | 碳化硅,氮化硅,冰晶石,绢云母,氟化铝,白刚玉,棕刚玉,石墨,铝粉,铁粉,金属硅粉,金属铝粉,氧化铝粉,硅微粉,蓝晶石,红柱石,莫来石,粉煤灰,三聚磷酸钠,六偏磷酸钠,硫酸镁-皓泉新材料 | 塑料脸盆批发,塑料盆生产厂家,临沂塑料广告盆,临沂家用塑料盆-临沂市永顺塑业 | 起好名字_取个好名字_好名网免费取好名在线打分 | 信阳市建筑勘察设计研究院有限公司 | 世纪豪门官网 世纪豪门集成吊顶加盟电话 世纪豪门售后电话 | 小程序开发公司_APP开发多少钱_软件开发定制_微信小程序制作_客户销售管理软件-济南小溪畅流网络科技有限公司 | 螺杆真空泵_耐腐蚀螺杆真空泵_水环真空泵_真空机组_烟台真空泵-烟台斯凯威真空 | 知网论文检测系统入口_论文查重免费查重_中国知网论文查询_学术不端检测系统 | 中国产业发展研究网 - 提供行业研究报告 可行性研究报告 投资咨询 市场调研服务 | 德国进口电锅炉_商用电热水器_壁挂炉_电采暖器_电热锅炉[德国宝] | 环讯传媒,永康网络公司,永康网站建设,永康小程序开发制作,永康网站制作,武义网页设计,金华地区网站SEO优化推广 - 永康市环讯电子商务有限公司 | 无锡网站建设_企业网站定制-网站制作公司-阿凡达网络 | 汝成内控-行政事业单位内部控制管理服务商 | 无菌水质袋-NASCO食品无菌袋-Whirl-Pak无菌采样袋-深圳市慧普德贸易有限公司 | 北京律师事务所_房屋拆迁律师_24小时免费法律咨询_云合专业律师网 | 橡胶接头_橡胶软接头_套管伸缩器_管道伸缩器厂家-巩义市远大供水材料有限公司 | 合金ICP光谱仪(磁性材料,工业废水)-百科 | 电镀标牌_电铸标牌_金属标贴_不锈钢标牌厂家_深圳市宝利丰精密科技有限公司 | 台湾HIWIN上银直线模组|导轨滑块|TBI滚珠丝杆丝杠-深圳汉工 | 【铜排折弯机,钢丝折弯成型机,汽车发泡钢丝折弯机,线材折弯机厂家,线材成型机,铁线折弯机】贝朗折弯机厂家_东莞市贝朗自动化设备有限公司 | 吹田功率计-长创耐压测试仪-深圳市新朗普电子科技有限公司 | 北京办公室装修,办公室设计,写字楼装修-北京金视觉装饰工程公司 北京成考网-北京成人高考网 | 影像测量仪_三坐标测量机_一键式二次元_全自动影像测量仪-广东妙机精密科技股份有限公司 | Eiafans.com_环评爱好者 环评网|环评论坛|环评报告公示网|竣工环保验收公示网|环保验收报告公示网|环保自主验收公示|环评公示网|环保公示网|注册环评工程师|环境影响评价|环评师|规划环评|环评报告|环评考试网|环评论坛 - Powered by Discuz! | 无线讲解器-导游讲解器-自助讲解器-分区讲解系统 品牌生产厂家[鹰米讲解-合肥市徽马信息科技有限公司] | 传递窗_超净|洁净工作台_高效过滤器-传递窗厂家广州梓净公司 | 德国EA可编程直流电源_电子负载,中国台湾固纬直流电源_交流电源-苏州展文电子科技有限公司 | 卫生型双针压力表-高温防腐差压表-安徽康泰电气有限公司 |