Home:ALL Converter>What causes this iOS permission prompt for "use Bluetooth for new connections"?

What causes this iOS permission prompt for "use Bluetooth for new connections"?

Ask Time:2019-10-29T09:49:26         Author:O'Rooney

Json Formatter

Since iOS13, our app which uses BLE beacons for location, now gets two Bluetooth related permissions prompts.

The first one is understandable and expected:

Prompt to use Bluetooth

The second prompt is not expected, and we don't know why it's happening.

Prompt to "use Bluetooth for new connections"

FYI the app is currently compiled with the previous iOS SDK/XCode.

Author:O'Rooney,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/58600502/what-causes-this-ios-permission-prompt-for-use-bluetooth-for-new-connections
O'Rooney :

I think that this second prompt is a new iOS13 variation on "please enable Bluetooth" and that it appears because the user has set Bluetooth to "off" in the control centre, but not turned Bluetooth fully off in Settings.\nThe description of "use Bluetooth for new connections" seems to correspond to the "partially enabled" state (white button in control centre).\nThis second prompt can be stopped using the CBCentralManagerOptionShowPowerAlertKey: @(NO) option to the CBCentralManager init call.",
spnkr :

By default, when Bluetooth is disabled every time you create a CBCentralManager this pop-up will appear.\n\nBy disabled I mean the bluetooth radio turned off. you can do this via the control center, or in your phone's settings. this is different from denying an app bluetooth permissions.\n\nIf you add a CBCentralManagerOptionShowPowerAlertKey to the options when creating your CBCentralManager this pop-up will not appear.\nSwift:\nlet manager = CBCentralManager(delegate: nil,\n queue: nil,\n options: ["CBCentralManagerOptionShowPowerAlertKey": 0])\n\nObjective-C:\n[[CBCentralManager alloc] initWithDelegate:self\n queue:nil\n options:@{CBCentralManagerOptionShowPowerAlertKey: @0}];\n",