Beacons issues on Android 6+

Hi everybody,

I’m having some issues with beacons on Android 6 and 7.
On Android 6, when I start ranging beacons, method onBeaconsDiscovered returns me always an empty list.
On Android 7 instead, when I start ranging beacons, method onBeaconsDiscovered is not even triggered.
I checked every permission in my Activity, every permission is granted.

int permissionCheck1 = ContextCompat.checkSelfPermission(this,
        Manifest.permission.ACCESS_COARSE_LOCATION);

int permissionCheck2 = ContextCompat.checkSelfPermission(this,
        Manifest.permission.ACCESS_FINE_LOCATION);

int permissionCheck3 = ContextCompat.checkSelfPermission(this,
        Manifest.permission.BLUETOOTH);

int permissionCheck4 = ContextCompat.checkSelfPermission(this,
        Manifest.permission.BLUETOOTH_ADMIN);

I’m even using
SystemRequirementsChecker.checkWithDefaultDialogs(this);
to check every permissions with Estimote SDK, it returns me always true.

Estimote’s logs are the following:
I/EstimoteSDK: BeaconService.onCreate:79 Creating beacon service for android version 23
D/EstimoteSDK: BeaconService.setForegroundScanPeriod:151 Setting foreground scan period: ScanPeriodData{scanPeriodMillis=3000, waitTimeMillis=1000}
D/EstimoteSDK: BeaconService.setBackgroundScanPeriod:156 Setting background scan period: ScanPeriodData{scanPeriodMillis=3000, waitTimeMillis=1000}

I/EstimoteSDK: BeaconService.onCreate:79 Creating beacon service for android version 22
D/EstimoteSDK: BeaconService.setForegroundScanPeriod:151 Setting foreground scan period: ScanPeriodData{scanPeriodMillis=3000, waitTimeMillis=1000}
D/EstimoteSDK: BeaconService.setBackgroundScanPeriod:156 Setting background scan period: ScanPeriodData{scanPeriodMillis=3000, waitTimeMillis=1000}

On Android < 6, it works fine.

I’m using version
compile 'com.estimote:sdk:1.1.0'

Thanks,
Giulio.

1 Like

I also tried to download and install estimote example source code but still the same…
Can anyone help me or I have to throw 50 beacons in the junk?

1 Like

same problem with me issue comes only a few devices,
i test it with android OS 4,5,6,7, it working fine with 4,5,7 but it compile issue with some devices which have OS 6 not with all,
looking for further that its OS issue or estimode issue

same problem. Tested whit sdk:1.2.0 and Android 6.0.1