My Android device/devices supports BLE and has Android OS version >= 4.4
My Android device/devices have Bluetooth enabled
My app has Location Permissions granted
Basic information
Estimote SDK version:
estimote:sdk:1.4.1
minSdkVersion 19
compileSdkVersion 26
Android devices affected:
HUAWI Mate 10 lite, Model: RNE-L21, Android 7.0
Infinix hot 4 lite, Model : X557, Android version: 6.0
HUAWI GR5, Model: KII-L21, Android version: 6.0.1
Beacon hardware version:
Estimote OS 4.13.2
Description
beacons sometimes get detected but most of the time is not
below is a video showing the beacons are detected on Estimote app and not detected on our app on HUAWI Mate 10 lite :
“https://www.dropbox.com/s/okoezmtp95z1neh/WhatsApp%20Video%202018-04-12%20at%201.56.28%20PM.mp4?dl=0”
(Optional) Steps to reproduce:
i had attached the code to reproduce it
Expected behavior:
beacons should get detected fast and whenever is required
Actual behavior:
beacons sometime get detected but most of the time is not being detected
Logs and code
region = new BeaconRegion("ranged region", UUID.fromString("B9407F30-F5F8-466E-AFF9-25556B57FE6D"), null, null);
beaconManager = new BeaconManager(context);
beaconManager.setBackgroundScanPeriod(5000, 5000);
beaconManager.setForegroundScanPeriod(5000, 5000);
beaconManager.connect(new BeaconManager.ServiceReadyCallback() {
@Override
public void onServiceReady() {
beaconManager.startRanging(region);
}
});
beaconManager.setRangingListener(new BeaconManager.BeaconRangingListener() {
@Override
public void onBeaconsDiscovered(BeaconRegion beaconRegion, List<Beacon> beacons) {
}
});