API to query the bonded (paired) state of a CBPeripheral instance

Originator:me
Number:rdar://15948249 Date Originated:30-Jan-2014 10:59 AM
Status:Duplicate/12955417/Open Resolved:
Product:iOS SDK Product Version:7.1 beta 4
Classification:Enhancement Reproducible:Not Applicable
 
iOS stores bonding data for Core Bluetooth (CoreBluetooth) peripherals, which can be seen by devices in Bluetooth settings with an (i) next to them. This Radar requests an API to query whether iOS has bonding data, and whether the current connection is encrypted.

Current workaround it to switch on certain CBATTErrors; when requesting a secure characteristic from a peripheral and iOS has bonding data but the peripheral does not (so connection isn’t encrypted), the error is CBATTErrorUnlikelyError (but this can occur in some other scenarios too). In this case, to re-establish a bond, the user must go manually to Bluetooth settings and forget the device before the application tries accessing the secure characteristic again.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!