gjedeer / mylocation

Share your location on Android - with Email, SMS, Conversations, Tox, Whatsapp etc
https://f-droid.org/repository/browse/?fdid=net.mypapit.mobile.myposition
GNU General Public License v2.0
30 stars 14 forks source link

GPS constantly used #4

Closed tbo47 closed 8 years ago

tbo47 commented 8 years ago

When the app is in background it still constantly use the GPS. It is using a lot of battery for no reason.

gjedeer commented 8 years ago

In background?

As in, when you hit the home screen you still see the app running and checking GPS?

gjedeer commented 8 years ago

I just pushed the cleanup I did some time ago to master - if you could build that and check if it solves your problem.

The gps code was really crappy in the original version before fork - and i released that because it somehow worked. Now I got rid of the unnecessary extra thread and there should be less surprises.

gjedeer commented 8 years ago

Reopen if the issue persists.

spaetz commented 7 years ago

Hi, using version 1.2.4 from fdroid. GPS is constantly used when I return to the Homescreen. When I explicitely close the app (wipe it from the app overview screen) the GPS symbol disappears immediately. So this seems to not be fixed yet. Thanks for the app!

gjedeer commented 7 years ago

Perhaps we need to capture the "lost focus" event and stop receiving GPS notifications then?

Anyway, this is not happening here so if I get to fixing that, I'll ask you to check.

Lee-Carre commented 2 years ago

Use the passive location provider?

gjedeer commented 2 years ago

@Lee-Carre no, that will not work, the passive location provider often returns stale data and claims it's fresh. That's okay for most uses but in this case, I want to make sure that when the app says location is 1 second old, it's 1 second old.