Skip to content

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

Closed
@kkapilchoubisa

Description

@kkapilchoubisa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions