-
-
Notifications
You must be signed in to change notification settings - Fork 677
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
App stops scanning for BLE Beacons when screen is off (Samsung S23U/S24U Android 14) #4562
Comments
as you ahve samsung devices you have more options to turn off than just battery optimizations. Please go through device settings and look for things like data saver, power saving etc... and turn them all off and/or grant the app the access it needs edit: as you mentioned its working on other devices then indeed teh issue is with device settings there |
All tests were performed with the following configurations and this does not help Connections - Data usage - Data saver: Off |
thanks for confirming, this might be a library issue as noted in AltBeacon/android-beacon-library#1174 seems like we may need to wait for an update there |
Are we still waiting for a fix in that library? I have the same issue on my Pixel 8 with Android 15. The moment I turn off the screen beacon monitor stops scanning. |
Thanks for the callout, we are 1 stable version behind actually: https://github.com/AltBeacon/android-beacon-library/releases/tag/2.20.7 will submit a PR with a bump seems like it has a fix for this |
ok after some testing on my end, can you guys give the debug APK from the artifact in the link below a shot? This will install side by side the production app and can be removed after the test, recommend giving a unique name to the device so you can distinguish it. The app icon is also red to be distinguishable https://github.com/home-assistant/android/actions/runs/12185974579 Based on the beta change log this may or may not work for some, we can try beta 3 however it has an issue where the distance is not working, so feedback is appreciated https://github.com/home-assistant/android/actions/runs/12186173003 |
I tried the minimal version apk in the first link but sensor.pixel_8_debug_beacon_monitor stops showing the beacon when I turn off the screen just like before. I also tried the minimal version of the apk in second link. Distance says -1 but same thing happens when I turn off screen (AOD mode). |
so not fixed in either? hmm ok |
Home Assistant Android app version(s):
2024.7.3-full
Android version(s):
Android 14
Device model(s):
Samsung Galaxy S23 Ultra SM-S918B
Samsung Galaxy S24 Ultra SM-S928B
Home Assistant version:
Core 2024.7.4
Supervisor 2024.08.0
Operating System 12.4
Frontend 20240710.0
Last working Home Assistant release (if known):
nope
Description of problem, include YAML if issue is related to notifications:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Tested on two phones: Samsung S23U and S24U (Android 14).
When the phone screen is off, beacons (Holyiot NRF52810) are not detected, attribute Beacon Monitor has state Monitoring .
When the screen is on (simply wake phone up with tap on the screen, the phone can be locked or unlocked - it doesn’t matter) scan working normally.
Home Assistant app settings:
Beacon monitor - Enabled
Enable beacon monitor - Enabled
Settings by default
Android settings:
Permission - Location: Allow all the time
Battery: Unrestricted
On Samsung Galaxy S8 Plus (Android 9) and Poco F3 (Android 13) phones with the same version of Home Assistant and the same HAOS server and app settings, beacon values are transmitted normally when the screen is off
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
LOGS
Companion App Logs:
Screenshot or video of problem:
Additional information:
The text was updated successfully, but these errors were encountered: