Our app does what we believe to be the right thing using Bluetooth. We init CBCentralManager and then call scanForPeripherals. The problem is that we're seeing the following message in the console when we make that call: "...[CoreBluetooth] API MISUSE: <CBCentralManager: 0x6060007ed820> can only accept this command while in the powered on state". We know that Apple states, "Before you call
CBCentralManager methods, the state of the central manager object must be powered on, as indicated by the poweredOn constant. This state indicates that the central device (your iPhone or iPad, for instance) supports Bluetooth low energy and that Bluetooth is on and available to use." Testing for status always shows it as "unknown" prior to the call to scan.So it seems to be a catch-22, where we can't call scanForPeripherals with status as unknown, and we can't determine that status is poweredOn until we scan. Is there some other call that is not an API misuse that will allow status to update? Thanks.