iOS documentation says that CBCentralManagerOptionShowPowerAlertKey
default value is NO
.
I'm not specyfing ANY options while instantiating CBCentralManager
[[CBCentralManager alloc] initWithDelegate:self queue:dispatch_get_main_queue()];
but it still shows the "Turn On Bluetooth to Allow..." prompt.
Is it a bug in documentation, or am I doing something wrong ?
Edit:
I've found this:
http://chris.cm/determine-whether-bluetooth-is-enabled-on-ios-passively/
And this:
which seem to suggest that you have to explicitly set the CBCentralManagerOptionShowPowerAlertKey
to NO
, which suggests that there is a bug in documentation ? I'm just looking for someone to confirm.
Edit 2:
after setting CBCentralManagerOptionShowPowerAlertKey
to 0
the problem seems to be resolved. but I'm still looking for some explanation, because it seems highly illogical that the documentation says one thing and program another.