traccar / traccar-client-android

Traccar Client for Android
https://www.traccar.org/client
Apache License 2.0
655 stars 722 forks source link

taccar using high battery use #140

Open ajkosh opened 9 years ago

ajkosh commented 9 years ago

in my mobile i sae recent lcation request ,inside i have 3 request. 1 locationservices low battery use 2 motorola modem service low battery use 3 traccar high battery use

how it is using high battery only in traccar. and if i set location provider as network provider and in phone i m setting location mode as battery saving it is sending data but speed is not going

tananaev commented 9 years ago

Can you provide a screenshot of the battery usage?

ajkosh commented 9 years ago

yes img-20150722-wa0009 img-20150722-wa0010 img-20150722-wa0011

tananaev commented 9 years ago

I don't see Motorola modem service or location services on the screenshot. Most application don't need to get location info regularly, so they don't need a wake lock. Traccar Client on the other hand, has to report data in fixed intervals, so it requests a wake lock which keeps CPU running and consumes more power. I guess that explains the results.

ghost commented 8 years ago

Same here on a Motorola G2 (none LTE, XT1068). Massive power drain after having Traccar Client installed. The system is down to ~1/2 day of battery life coming from 2-3 days.

frequency of update is set to 300 seconds location provider is mixed app is set to background service (foreground service unticked)

screenshot_2015-09-11-07-13-57

tananaev commented 8 years ago

Traccar Client in mixed mode uses GPS module, so it's expected that the battery life would be low. There are two options:

  1. Try network location provide which uses less battery power
  2. Set lower location reporting frequency
QROkes commented 7 years ago

Same here. Frecuency: 900s Provider: GPS

screenshot_20170221-095829

tananaev commented 7 years ago

Traccar Client uses GPS, which consumes a lot of battery power. If you want to reduce consumption, you can switch to network provider, but the accuracy would be lower.

QROkes commented 7 years ago

It weird because I actually turned off the app (service deactivated) and still getting the warning message.

tananaev commented 7 years ago

If the service is off, the app won't consume any power. It must be reporting warning for previous activity.