Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beacon Monitor Stops Scanning if Screen Off #4111

Closed
elmigbot opened this issue Jan 2, 2024 · 7 comments · Fixed by #4227
Closed

Beacon Monitor Stops Scanning if Screen Off #4111

elmigbot opened this issue Jan 2, 2024 · 7 comments · Fixed by #4227
Labels
bug Something isn't working sensor-tracking

Comments

@elmigbot
Copy link

elmigbot commented Jan 2, 2024

Home Assistant Android app version(s):
2023.12.4-full (I think this issue started with this version, although it could have been the December pixel update too)
Android version(s):
14, Dec 5th 2023 update
Device model(s):
Pixel 7a and 6a (another user on discord reports same on pixel 6 pro and pixel 7 pro) Possibly a pixel issue?
Home Assistant version:
2023.12.4
Last working Home Assistant release (if known):
2023.12.4
Description of problem, include YAML if issue is related to notifications:
The beacon monitoring stops scanning if the device screen is off. It instantly resumes scanning when screen is on (even if locked still).

This occurs even though device is unrestricted and has all required location/bt access. The beacon monitor's permanent notification is also present during this issue and stays present.

I've been using the beacon monitor without issue since it was available. This just started happening with no changes other than pixel update and app update.

I tried adding a UUID filter to see if that changes anything, based on googlage of the issue. Nope.

Companion App Logs:
As noted in discord, the logs do not indicate anything is wrong.


Screenshot or video of problem:

Additional information:

@elmigbot elmigbot added the bug Something isn't working label Jan 2, 2024
@mag1024
Copy link

mag1024 commented Jan 15, 2024

Can confirm that this is a regression, and that it started some time in Dec.
I'm using a Pixel 7 Pro.

@dshokouhi
Copy link
Member

Looks like an issue in the library. Should hopefully be resolved with AltBeacon/android-beacon-library#1176

@LunarstarPony
Copy link

LunarstarPony commented Feb 19, 2024

Have the same issue with Pixel 6 Pro, Any idea when this will be fixed? Consider the issue seems to be known.

@mag1024
Copy link

mag1024 commented Feb 25, 2024

I believe the issue got fixed in android-beacon-library 2.20.4. Is there still time to do a dependency bump before the next release?

@jpelgrom
Copy link
Member

I believe the issue got fixed in android-beacon-library 2.20.4. Is there still time to do a dependency bump before the next release?

Betas are automatically pushed on Sunday mornings (UTC), so the earliest this would be included in is 2024.3.1 (if we update the dependency). There is no fixed release schedule for stable app releases so there's always time :)

@dshokouhi
Copy link
Member

Hey all I have submitted a PR to bump the library to the latest version. If someone is able to reproduce the issue please test by downloading the artifact from the below link then extracting and sideloading the APK. The debug version of the app can be installed safely side by side the production app with a red icon to help distinguish it. When signing in give the device a different name so you can easily delete it after the test.

https://github.com/home-assistant/android/actions/runs/8039703126

@mag1024
Copy link

mag1024 commented Feb 26, 2024

Just tested it, and the fix works! Running both side by side, the released app stops reporting beacons when the screen turns off, but the test keeps going. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sensor-tracking
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants