Assigned
Status Update
Comments
su...@google.com <su...@google.com>
lo...@gmail.com <lo...@gmail.com> #2
Forgot to note the environment.
This crash occurs on only API 21.
This crash occurs on only API 21.
lo...@gmail.com <lo...@gmail.com> #3
This crash occurs on API 22 and 23 when the user doesn't have Google Play installed. Related discussions: https://stackoverflow.com/q/41025200/842697
Description
My app has been working for a long time. It uses BLE scanning while the screen is off.
Since the Android 14 Dec/2023 or Jan/2024 update to the Pixel 7 Pro this broke (due to personal reasons I'm not sure which of these two).
I can start my app and start scanning. Switch to another app or the home screen and scanning still works. Tap power button to turn off the screen or wait for display timeout and then scanning stops. Turn on the screen and scanning works again (don't even need to reopen my app or restart scanner). It had been working for the previous 12 months with zero issues on the same phone.
It still works perfectly on my Pixel 4a5g which is still on the Android 14 Nov/2023 update (because you stopped doing updates for the 4a5g.
code is simply
adapter.bluetoothLeScanner.startScan(listOf(ScanFilter.Builder().build()), SCAN_MODE_BALANCED)
and it has all permissions needed.