The question could be duplicated, but I have tried a lot of code and it wasn't work. I have read about
CBCentralManagerOptionShowPowerAlertKey
option and the possibility to show an alert to go settings bluetooth option into iPhone for turn on on the application, but I haven't get works this.
If I set the key to true the key not appear, and when I change the value to false the key not works...
I'm using this code into my Swift application:
var bCentralManger: CBCentralManager!
self.bCentralManger = CBCentralManager(delegate: self, queue: DispatchQueue.main, options: [CBCentralManagerOptionShowPowerAlertKey: true])
Works this option in iOS? I'm using iOS 12 on my device. Have anybody this code working? Thanks!