Re: Bluetooth-dev Digest, Vol 15, Issue 7
site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com Hi Rogers / Hadi, The problem described here with centralManagerDidUpdateState should be fixed in the IOS12 beta; please try it out and let us know! Thanks, Duy
On Jun 6, 2018, at 12:39 PM, Rogers George <rgeorge@hidrate.me> wrote:
We have encountered this as well.
I have found that it happened to me only after using the Control Center bluetooth button to "turn off" (disconnect but not actually turn off) Bluetooth, *in combination* with using the Settings App or Airplane Mode button to turn Bluetooth off or on, in some sequence. I'm sorry I don't have an exact sequence for you.
I now make a point of only ever using the Airplane Mode button or the Settings App to disable Bluetooth when I need it truly turned off. Since doing so, I have never encountered this state. Using the control center button to turn Bluetooth ON (from a truly-off state) seems safe so far.
Once the state is reached, rebooting the phone of course clears it up; there is probably something less drastic that works, but since figuring out how to avoid it I haven't had to hunt for a better fix.
If you can see other apps exhibit the same problem, that strongly suggests this is a bug in Core Bluetooth related to the Control Center Bluetooth button's new behavior.
-- R.
(Apple, please count me as yet another vote that the iOS 11 behavior of that button is unhelpful, and that a true "off" for Bluetooth and Wifi should be available somehow in the control center. Firm-press maybe?)
On Jun 6, 2018, at 2:00 PM, bluetooth-dev-request@lists.apple.com wrote:
Send Bluetooth-dev mailing list submissions to bluetooth-dev@lists.apple.com
To subscribe or unsubscribe via the World Wide Web, visit https://lists.apple.com/mailman/listinfo/bluetooth-dev or, via email, send a message with subject or body 'help' to bluetooth-dev-request@lists.apple.com
You can reach the person managing the list at bluetooth-dev-owner@lists.apple.com
When replying, please edit your Subject line so it is more specific than "Re: Contents of Bluetooth-dev digest..."
Today's Topics:
1. Getting state .poweredOff even when Bluetooth is on (Hadi)
----------------------------------------------------------------------
Message: 1 Date: Wed, 06 Jun 2018 16:00:27 +0500 From: Hadi <hadi808@gmail.com> To: bluetooth-dev@lists.apple.com Subject: Getting state .poweredOff even when Bluetooth is on Message-ID: <CA+h4dx4PabQP3n96sAV2V5ujqzjsxQZ2a=ADLp4AWq7G=VQNHg@mail.gmail.com> Content-Type: text/plain; charset="utf-8"
Hi,
There's an issue I've been facing since iOS 11. Sometimes when bluetooth is enabled (it's showing blue icon in control center, and toggle is on in Settings > Bluetooth) the centralManagerDidUpdateState(_:) method returns ".poweredOff". I thought I might be doing something wrong in code but I checked with popular BLE apps like nrfConnect, Light Blue (Explorer), Pebble app and they all were asking me to turn on the Bluetooth.
However I was able to pair my headphones with iPhone and also connect to the BLE device (I'm working on) using Settings > Bluetooth and tapping on it.
Anyone aware of the issue? Or these all apps including mine's are not following the CoreBluetooth rules? Your feedback/help would be appreciated.
I can also send screenshots and screen recording if anyone wants.
Thanks, Hadi
participants (1)
-
duy_phan@apple.com