home-assistant / home-assistant/android

Pixel 8a only really updates location when app is active and phone screen is on

Open
#4,679 62 comments 2 reactions 0 assignees View on GitHub
bug location-tracking
Dominant language
Kotlin
Stars
3.9k
Forks
1.1k
Avg merge
1d 12h
Merged PRs (30d)
81

Description

**Home Assistant Android app version(s):**
2024.7.3-full
**Android version(s):**
14 system updated to September 5,2024
**Device model(s):**
Pixel 8a
**Home Assistant version:**
2024.9.3
**Last working Home Assistant release (if known):**
not sure
**Description of problem, include YAML if issue is related to notifications:**
When the app is in the background, or the screen of the phone is turned off location updates happen very random or not, when the app is active and the screen is on i get updates every minute as expected

**Companion App Logs:**

```
There are no logs when the app is running in the background.
I was asked to include screen shots from the Location history in the Android app

```

**Screenshot or video of problem:**
Left the house at 2:55pm, arrived at work at 3pm, app didn't update until 3:08pm when i opened the app
![Driving - App background - Screen off](https://github.com/user-attachments/assets/1155d329-de5d-451f-8a74-b9a1ba03fe9a)

Here i left the app open and the screen on, i get an update every minute, left work at 1:25pm, got home at 1:29 and received all expected updates
![Driving - App open - Screen on](https://github.com/user-attachments/assets/461ab12d-bcf1-41ca-9914-17bab8191f32)

Here i left the app open and screen on while stationary at work. I again get an update every minute as expected.
![Stationary - App open - Screen on](https://github.com/user-attachments/assets/d6406dcc-228c-4a0e-8411-0ac5aef62308)

Here the app is running in the background and screen off. I turned the screen off at 4:22pm and turned the screen back on at 4:52pm
![Stationary - Screen off](https://github.com/user-attachments/assets/0706c6f3-e269-4ccc-a0fc-c86a824c9743)

**Additional information:**

Confirming settings i checked on my Pixel 8a.
- Home assistant app says it's allowed to run in the background.
- App has access to location services at all times
- App battery use is set to Allow background usage and is set to unrestricted

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.