我的phonegap app使用更多电池 [英] My phonegap app using more battery

查看:94
本文介绍了我的phonegap app使用更多电池的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,我有一个问题

我的phonegap应用程序使用更多的电池如何减少它在phonegap

任何代码我必须写或需要使用任何第三方不使用电池寿命的插件。



我的应用程序将使用Gps和Internet连接。任何使我的应用程序的代码都不能浪费更多电池。

sir, I have an issue
my phonegap app using more battery how to reduce it in phonegap
Any code i have to write or need to use any third party plugin for not using battery life more.

My app will use Gps and Internet connections. Any code to make my app must not waste battery more.

推荐答案

当你使用GPS时,几乎不可能减少电池使用量......

GPS是一个非常耗能的设备...有几个原因

1. GPS速度慢 - 所以需要更多时间进行通信

2.它必须与3个或更多卫星通信,而WiFi或数据通信是针对单点连接完成的。

3.GPS具有相对复杂的初始化,因此在使用GPS时设备无法进入睡眠状态(在退出睡眠状态后,它将不得不重新初始化GPS,这太昂贵了)
While you are using GPS it is next to impossible to reduce battery usage...
GPS is a very energy hungry par of the device...There are several reasons
1. GPS is slow - so it need more time to communicate
2. It has to communicate 3 or more satellites while WiFi or data communications done against a single point of connection
3. GPS has a relatively complicated initialization and for that while GPS in use the device can not enter sleep state (after exiting sleep state it will have to re-initialize GPS an it is far too expensive)


这篇关于我的phonegap app使用更多电池的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆