Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLE Restoration does not work properly due to type alias #111

Open
kkapilchoubisa opened this issue Nov 17, 2024 · 1 comment
Open

BLE Restoration does not work properly due to type alias #111

kkapilchoubisa opened this issue Nov 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@kkapilchoubisa
Copy link

In order to have state restoration, I have implemented following initializer:
let options = [CBCentralManagerOptionRestoreIdentifierKey:"com.lifeleaf.app.watch"] CBCentralManager c = CBCentralManagerFactory.instance(delegate: nil, queue: nil, options: options)

I have implemented the func centralManager(_ central: CBMCentralManager, willRestoreState dict: [String : Any]) delegate method of Central Manager. However, the kCBRestoredPeripherals of the dict provides CoreBluetooth.CBPeripheral while it should provide CBMPeripheral. This leads to issues in restoration.

@philips77
Copy link
Member

Thank you for the bug report. Could you create a PR fixing the issue? I am busy with other projects, so this way may be the fastest way to have it fix. I can quickly release it afterwards.

@philips77 philips77 added the bug Something isn't working label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants