AltBeacon / android-beacon-library

Allows Android apps to interact with BLE beacons
Apache License 2.0
2.83k stars 834 forks source link

ScanJob sometimes fails to start on Android 12 #1076

Closed davidgyoung closed 2 years ago

davidgyoung commented 2 years ago

Expected behavior

Scan job starts on schedule, regularly in foreground, every ~15 minutes in background.

Actual behavior

Often it works as expected, but sometimes this shows up in the logs and it fails to start:

Quitting scan job before we even start. Somebody told us to stop.

Steps to reproduce this behavior

Run the reference app on Android 12 in the foreground with scan jobs configured and watch for the above log line.

Mobile device model and OS version

Pixel 4a Android 12

Android Beacon Library version

2.19.3

IMPORTANT: This forum is reserved for feature requests or reproducible bugs with the library itself. If you need help with using the library with your project, please open a new question on StackOverflow.com.