android icon indicating copy to clipboard operation
android copied to clipboard

Beacon Monitor Stops Scanning if Screen Off

Open elmigbot opened this issue 1 year ago • 7 comments

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 avatar Jan 02 '24 17:01 elmigbot

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

mag1024 avatar Jan 15 '24 19:01 mag1024

Looks like an issue in the library. Should hopefully be resolved with https://github.com/AltBeacon/android-beacon-library/pull/1176

dshokouhi avatar Jan 18 '24 15:01 dshokouhi

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

LunarstarPony avatar Feb 19 '24 04:02 LunarstarPony

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?

mag1024 avatar Feb 25 '24 16:02 mag1024

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 :)

jpelgrom avatar Feb 25 '24 17:02 jpelgrom

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

dshokouhi avatar Feb 25 '24 18:02 dshokouhi

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!

mag1024 avatar Feb 26 '24 03:02 mag1024