site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hidrate-me.20150623.gappssmtp.com; s=20150623; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=gr+r65BGgtJPGsRs2r340X4C4QI7XtLZlLcjqaEK1Zc=; b=OHG45NhehKUPY0gLbYfLRm8wytflWiekl/7I3to0GBfSrTjxDN5ynUNBhTYBAag8Ix IaDohxa0adPYGA9zkx577k8JEHbRteaybFGo6M8l0TEBsgAsctVQn12fl9va0c4OhE7L XYOxwAMjQKTvP1Fp/4SUHKDQXX1rfjHWk0lytqZTo/TOVarN6FvfpjqNgNQbKMUTs6FJ NmactlDPCiwlLggggDBfaLRjmgVKcmTA5ACKPxkPA0D/Pm73PNqbm7Bjjx5TbYm3ERzR 9BYHr238tfOnIYBD8kWV738LhL2jvEFJ4HQZoiOh7g25zOZ/22G4L+qdemQFuC/gL1MR kIQw== 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