rhummelmose / BluetoothKit

Easily communicate between iOS/OSX devices using BLE
Other
2.27k stars 267 forks source link

CBCentralManager is always poweredOff on iOS 11 #86

Open amani-mohammad opened 6 years ago

amani-mohammad commented 6 years ago

I have installed the latest update of the code but I am facing a serious problem when I try to connect on iOS 11.0+ devices.

Every time I receive a message that says: 'Please turn on Bluetooth to connect to the device'. I have traced the code and it seems that the CBCentralManager state is always poweredOff.

I tested BLE connection on the same iOS 11 device with other apps and it works fine. Sometimes it just needed to turn off then turn on the Bluetooth from settings to be able to connect. Other apps works after turning off then on the Airplane mode. But neither works with my app and its Bluetooth kit code.

Any solution please ?

iDalink commented 6 years ago

Yes, It happens to me also. If you close bluetooth in control center , and you open bluetooth in setting, you will always receive poweroff state. You should open bluetooth in control center also. I am confused with this problem.