AccessorySetupKit: cannot scan for BLE devices

Hello everyone, we implemented the AccessorySetupKit successfully and is working but we found an issue or maybe an issue in our implementation: we cannot scan for peripherals in other part of the App with the CBCentralManager, the state is alway Off.

Is that intended or maybe we are doing something wrong? In the docs I didn't find nothing about the relation between the Framework and Core Bluetooth and we need to scan for peripherals without showing the user the ASK UI Modal - it would be amazing if ASK could do a silent discovery

Appreciate any help!

Fernando

I have the same problem. The only way I can successfully scan is if before activating an ASK session I have already tried to scan. That presents the Bluetooth permissions popup and if the user allows it, then the centralManager state behaves as expected. However, when the session is activated before we ask for permissions, then it looks like we get locked with using just ASK, as the centralManager will be always in poweredOff state. Anyone from the ASK team to clarify what's happening and why?

AccessorySetupKit: cannot scan for BLE devices
 
 
Q