AltBeacon / android-beacon-library

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

beaconManager.isBound() always true on Android 10 #1005

Closed AnthonyKoueik closed 3 years ago

AnthonyKoueik commented 4 years ago

Expected behavior

beaconManager.isBound() should be false after calling beaconManager?.unbind(this)

Actual behavior

beaconManager.isBound() is always true

Steps to reproduce this behavior

if (beaconManager?.isBound(this) == true) {
                            stopRanging()
                            beaconManager?.unbind(this)
} else {
                        if (beaconManager?.isBound(this) != true) {
                            beaconManager?.bind(this)
                        }
                    }

Mobile device model and OS version

Android OS 10

Android Beacon Library version

2.16.3 and 2.17.1

AnthonyKoueik commented 4 years ago

ok found that mScheduledScanJobsEnabled is true , this is why it is not unbinding