CBCentralManagerOptionShowPowerAlertKey on iOS 11?
CBCentralManagerOptionShowPowerAlertKey on iOS 11?
- Subject: CBCentralManagerOptionShowPowerAlertKey on iOS 11?
- From: Chase Acton <email@hidden>
- Date: Wed, 20 Sep 2017 10:21:28 -0700
We use the following code when Bluetooth is turned off to show the system
prompt to enable Bluetooth:
NSDictionary *options = @{CBCentralManagerOptionShowPowerAlertKey:
@(YES)};
CBCentralManager *annoyingPromptOnlyManager = [[CBCentralManager alloc]
initWithDelegate:self queue:nil options:options];
[annoyingPromptOnlyManager scanForPeripheralsWithServices:nil
options:nil];
[annoyingPromptOnlyManager stopScan];
annoyingPromptOnlyManager = nil;
It looks like this is no longer working on iOS 11; no system alert is
displayed. Is this intentional and is there a replacement? If not, what's
the current best practice to prompt users to turn on Bluetooth?
Thank you,
Chase
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden