AltBeacon/android-beacon-library

Android 14 didDetermineStateForRegion no beacon is detected or scanned

Closed this issue · 2 comments

Expected behavior

The beacons should be detected and read the content.

Actual behavior

job runs but it does not detect any ibeacons

public void didRangeBeaconsInRegion(Collection beacons, Region region) {
//Log.d(TAG,"Running beacon search now.");
Log.d(TAG, "didRangeBeaconsInRegion called with beacon count: " + beacons.size() + "|" + region.getUniqueId());

the beacons.size() is always 0. While running exactly the same under any lower android, I am getting values. Permissions are set.

Steps to reproduce this behavior

Using latest Altbeacon library and running the same app from Android 10, 11, 12 under android 14.

Mobile device model and OS version

Android 14 (OPPO phone)

Android Beacon Library version

implementation 'org.altbeacon:android-beacon-library:2.20.4'

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.

@hornyd Do you have this issue on other Android devices with Android 14 or it's only on Oppo?

@VolodaUa sorry for not replying to this issue earlier. After searching and debugging, I found out that the Java sdk had to be updated to higher version 17. After recompiling and it worked, no more error from the lib.