react-native-ble-plx icon indicating copy to clipboard operation
react-native-ble-plx copied to clipboard

Feature Request: Reset cache similarly like on Android with refreshGatt.

Open folin03 opened this issue 10 months ago • 1 comments

Feature Description

Reset cache similarly like on Android with refreshGatt.

Current Workaround

forget paired device in iOS settings and pair again.

Additional Information

I pair with a device but for fw update I use unpaired connection which works fine to go from paired connection to unpaired but after firmware update I o back to paired connection but iOS reports not having the correct handlerers. Android reports the saem if I don't use refreshGatt 'OnConnected'. Therefore I assume that android and iOS cache the pairing information, Android can refresh the cash using refreshGatt but iOS does not refresh it. iOS allows to downgrade from paired connection to unpaired connection on the same device but does not allow to go from unpaired back to paired. It seem that the handlers of paired connection are owerwritten with unpaired handleres. Gorgetting the paired device in iOS settings and repairing fixes the issue but we do not have a function to re-pair a device withing this package, that may also be helpful.

Suggested Implementation

reset cache on iOS as Android does with refreshGatt.

Additional Information

  • [x] I have searched for existing feature requests.
  • [ ] I would like to work on this feature myself.

folin03 avatar Mar 18 '25 10:03 folin03

Hello @folin03. Thank you for raising this topic. I will add this feature request for our backlog.

aliberski avatar May 26 '25 21:05 aliberski