Hi, Not sure if this belongs here so my apologies in advance If I got it wrong!.
I’m implementing Beacons & Stickers/Nearables into an app for the company I work at, as a way of testing, I turn the bluetooth on my device off when I am testing the Stickers (As there are no flip to sleep functions).
However, In doing this, My App records that the stickers keep firing the nearableManager:didRangeNearables event for at least 35 seconds after.
Is there anything that can be done to cut down this time?
I am doing this with the following code
var nearableManager: ESTNearableManager = ESTNearableManager();
override func viewDidLoad() {
super.viewDidLoad()
self.location_manager.requestAlwaysAuthorization();
self.nearableManager.startRangingForType(ESTNearableType.All);
}
func nearableManager(manager: ESTNearableManager!, didRangeNearables nearables: [AnyObject]!, withType type: ESTNearableType) {
let date = NSDate().timeIntervalSince1970;
var beaconsDebug = "✅[\(date)]Nearable|";
var count = 0;
for (nearable) in nearables as! [ESTNearable]! {
//Get Nearable ID
var motionStr = nearable.isMoving ? "IN MOTION💹": "";
beaconsDebug = beaconsDebug + "["+nearable.identifier+"|\(nearable.rssi)|\(motionStr)]";
count++;
}
if(count > 0) {
self.addLine(beaconsDebug);
}
}
(Image above shows detected Beacons and Stickers (Newest on the top))
Thanks