Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

1 solution

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)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900