Mobile App location is incorrect

Using the mobile app, granted location permissions and everything, but my location seems to always show ‘home’
This is what I have done:

Settings → People → My user → Track Device: I have set my mobile device name from the mobile app integration
On the mobile app itself, I have granted the location permissions as liberally as allowed

No matter what I change there, my homeassistant always shows me as being at home, and geocoded_location is not updated.

Any ideas where to begin with this?

android or ios?

if android check these steps:

Using android (sorry, left that part out).
I’ve checked all of those settings and they seem to be set correctly.

The only thing I’m seeing in the logs about location is saying

W Geocode SM: Skippinng geocoded update due to old timestamp .... compared to ....

The other thing that caught my eye on the logs is this
E mcompanion.androi: Invalid ID 0x00000000 and
E mpanion.androi: No pacage ID ff found for ID 0xffffffff

this error is related to the geocode sensor and not the device tracker, look at the logs mentioned under the steps for an example of what to look for. You should be seeing location updates every few minutes if all the steps are correct.

Is the device tracker linked to the right person, and does the person have other device trackers associated that stay home (ipad for example)?

Yes, it’s setup to the right person. No other devices tied to that person.

While tinkering around with the settings on the companion app, it seems the ‘Persistent Connection’ settings affect this. I had that set to ‘Never’. I updated that to ‘While the screen is on’ and that seems to have done the trick

There is nothing in the codebase that links location tracking to the persistent connection, that is just a placebo effect. You can set it back to never as the persistent connection may drain your battery more.

That could be true, I will continue to test, but I do have very restrictive permissions for all apps, and make exceptions as I see for for the apps I want to allow more freedom over permissions. This sometimes breaks some of the background functionality on some apps, but I’m willing to live with that.