I am developing an app which uses GPS in background. It is draining battery very fast. How can i resolve this? any thoughts ?
4:09 - 55% (Start Time)
4:15 - 50%
4:25 - 45%
4:40 - 35% (End Time)
I am developing an app which uses GPS in background. It is draining battery very fast. How can i resolve this? any thoughts ?
4:09 - 55% (Start Time)
4:15 - 50%
4:25 - 45%
4:40 - 35% (End Time)
You need to make use of the pause and resume for the watch location function:
http://docs.phonegap.com/en/2.0.0/cordova_events_events.md.html
@waltercolindres i am already using pause and resume events. But i also need background tracking. I am starting background tracking on pause event and stopping it on resume.
I am having the same issue… No luck solving it yet!
If you are making float calculation on every location change, it will drain battery. Try to optimize calculations.