`didWriteValueForCharacteristic:error:` is called after writing with `CBCharacteristicPropertyWriteWithoutResponse` property

Originator:sutarshow
Number:rdar://28426725 Date Originated:2016-09-22
Status:Open Resolved:No
Product:iOS SDK Product Version:10
Classification:Serious Reproducible:Always
 
Summary:
`didWriteValueForCharacteristic:error` is called which should not. This bug is introduced in iOS 10.

Steps to Reproduce:
1. Send a BLE request by using `writeValue:forCharacteristic:type:` method, where `type` is `CBCharacteristicWriteWithoutResponse`.
2. Observe `didWriteValueForCharacteristic:error:` callback.
3. Error produces, something like below:
```
Error Domain=CBATTErrorDomain Code=114 "Unknown ATT error." UserInfo={NSLocalizedDescription=Unknown ATT error.}
```

Expected Results:
`didWriteValueForCharacteristic:error:` is not called.

Actual Results:
`didWriteValueForCharacteristic:error:` is called.

Version:
iOS 10.0.1

Notes:


Configuration:
iPhone 5s with Bluetooth powered on.

Attachments:

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!