android
android copied to clipboard
Beacon Monitor Stops Scanning if Screen Off
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:
Can confirm that this is a regression, and that it started some time in Dec. I'm using a Pixel 7 Pro.
Looks like an issue in the library. Should hopefully be resolved with https://github.com/AltBeacon/android-beacon-library/pull/1176
Have the same issue with Pixel 6 Pro, Any idea when this will be fixed? Consider the issue seems to be known.
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?
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 :)
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
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!