Closed francisco-rg closed 6 years ago
Hello @francisco-rg
The internal Bluetooth scanner object is being initialised only once upon building the ProximityObserver
object (using ProximityObserverBuilder
). If you build it at the same moment when the Bluetooth is disabled, the scanner object will be initialized with AlwaysErrorEstimoteScanner
implementation, and will throw... wait for it... an error whenever it will be started.
My strong suggestion is to build your ProximityObserver
only when the Bluetooth is enabled. Doing this directly in onRequirementsFulfilled:
action in our RequirementsChecker should prevent from getting Unable to create bluetooth LE scanner instance
.
Kind regards, Paweł
Hi Pawel,
Yeah this actually fix it or so it seems at least after a couple of test, I will try in a few others phones and a few more times just to be sure.
Thanks
Hey @francisco-rg
Using RequirementsChecker
should prevent this issue. Now since the new version 0.4.2
no uncaught exception should be thrown anyway - it will be properly reported in onErrorAction
set via ProximityObserverBuilder
.
Prerequisites
Basic information
Estimote SDK version: [0.4.1 and mustard:0.2.1]
Android devices affected: [Android Lollipop 5.1.1 Api 22, Android Nougat 7.0 Api 24]
Android OS version affected: [Samsung Galaxy J1 Ace, Samsung Note 5,Huawei P10 (VTR-L09), Huawei P10 (WAS-LX3)]
Beacon hardware version: [F3.3 / Estimote OS 4.13.2]
Description
[When our app start and began to scan for beacons it crash, see below for log details, if need we have crashlytics info]
example case:
Expected behavior: [Scan for beacons, zone event should be fired upon a beacon detection, no to crash the app]
Actual behavior: [After bluetooh has been active and scans happens, app shouldn't crash]
Additional information
Might be the same case as issue #36 or at least related, the behavior and the way to created it is almost the same