Reedyuk / blue-falcon

A Bluetooth kotlin multiplatform "Cross-Platform" library for iOS and Android
https://bluefalcon.dev
Apache License 2.0
321 stars 43 forks source link

Keep reference to PeripheralDelegate on iOS to prevent deallocation. Probably fixes #99 as well. #103

Closed ralfvdz closed 1 year ago

ralfvdz commented 1 year ago

Keep reference to PeripheralDelegate on iOS (similar to how it's already implemented in this library for MacOS), because CBPeripheral's weak reference does not prevent deallocation/GC. Probably also fixes #99