-
Notifications
You must be signed in to change notification settings - Fork 834
Description
Expected behavior
Apps using the library's IntentScanStrategy will continue to detect beacons after the screen is turned off.
Actual behavior
After first launch of the app and the subsequent screen turn off, beacon detections stop. They resume as soon as the screen is illuminated again.
Steps to reproduce this behavior
- Install the Kotlin Beacon Reference App (modified to use the IntentScanStrategy) on A Samsung Device with Android 14
- Grant all permissions
- Turn on a 10Hz beacon transmitter and ensure beacons are detected in the foreground.
- Watch logicat filtering for BroadcastRecevier, seeing multiple detections get delivered to the reference app per second.
- Turn the screen off. See that detections stop in a few seconds.
- Wait 30 seconds or more and confirm no further detections are seen
- Turn the screen on, see that detections resume.
- Turn the screen off, see that detections continue (at a slower rate)
Mobile device model and OS version
Samsung Galaxy S23 Android 14
Samsung Galaxy Tab 8 Android 14
Android Beacon Library version
2.20.4
This same problem was not witnessed on earlier Samsung OS versions and Pixel devices:
Samsung Galaxy A10 Android 11 (detections continue with screen off at 5-10 Hz)
Samsung Galaxy S23 Android 13 (detections continue with screen off at 3/sec)
Google Pixel 4a Android 14 (detections continue with screen off at 0.1 Hz)
It is unclear whether this is an Samsung bug for an intentional change.
No meaningful log lines are visible at a system level when this happens.