cordova-plugin-bluetoothle icon indicating copy to clipboard operation
cordova-plugin-bluetoothle copied to clipboard

iOS subscribe: Error Domain=CBATTErrorDomain Code=3 "Writing is not permitted"

Open ragcsalo opened this issue 6 years ago • 3 comments

When I try to subscribe for notifications on a characteristic, I get this error:

Error Domain=CBATTErrorDomain Code=3 "Writing is not permitted"

I don't want to write anything, just be notified when the characteristic value changes... The plugin description says "The Client Configuration descriptor will automatically be written to enable notification/indication based on the characteristic's properties." Maybe that's the problem? There is no Write access to this characteristic... so why does the plugin try to write something automatically??

ragcsalo avatar Mar 28 '18 11:03 ragcsalo

Does the characteristic allow for notification/subscriptions?

hannibaldinski avatar Mar 28 '18 13:03 hannibaldinski

Yes of course. :-) As a matter of fact, only "Notify" is available for this characteristic... I don't know why I get a "Writing is not permitted" error when subscribing.

Maybe this is an iOS specific bug. I also couldn't subscribe by using the BT LE Central plugin. Also 3rd party apps were unable to subscribe... On Android everything works FINE, with your plugin and with other plugins (and 3rd party apps) as well.

  • Device: Xiaomi Mi Band 2
  • Service: FEE0
  • Characteristic: 00000010-0000-3512-2118-0009AF100700

ragcsalo avatar Mar 28 '18 13:03 ragcsalo

@ragcsalo did you find a solution for this?

gregor-srdic avatar Dec 23 '20 12:12 gregor-srdic