owntracks / android

OwnTracks Android App
http://owntracks.org
Eclipse Public License 1.0
1.38k stars 476 forks source link

owntracks doesn't have location permission "allow all the time" #1585

Closed tve closed 9 months ago

tve commented 9 months ago

I've been having zero luck with the owntracks app. I just doesn't track me unless I have it open and am staring at the map live. One thing I noticed is that other apps on my phone have the location permission "all the time" while owntracks has it only "while in use": Screenshot_20240124-174406 Screenshot_20240124-174420

As you can see, I don't have the options to give owntracks location permission "all the time": Screenshot_20240124-174437

I'm not sure of the ramifications, but it seems suboptimal.

growse commented 9 months ago

There's been a few issues raised about this.

In short:

just doesn't track me unless I have it open and am staring at the map live. One thing I noticed is that other apps on my phone have the location permission "all the time"

Does it publish locations when the activity is closed in move mode? I've not tested on CalyxOS so don't know how their location provider behaves.

tve commented 9 months ago

I have the app in move mode and it's been sitting on my desk and mostly clocking in the updates. Except between 6:27 UTC and 8:35 UTC it only reported two times. The HTTP POSTs also have that gap. The phone must have been laying here untouched, weird. The reboot issue has caught me a couple of times...

growse commented 9 months ago

When you select move mode, OT requests the highest priority, most energy-hungry type of location updates, which should kick in an active GPS search. Should be the same as opening a maps application in the foreground and getting an instant location that way.

If you're not seeing that, then your device isn't delivering locations to OT in response to its request.

If you get a chance, there's one other thing you can try: if you put the device in move mode and don't observe a location arriving every moveModeLocatorInterval seconds, leave it a bit, and then open up a different mapping application (e.g. Google maps, or Organic maps). Does that now trigger OT to send a location update?