You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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, thekCBRestoredPeripherals
of the dict provides CoreBluetooth.CBPeripheral while it should provide CBMPeripheral. This leads to issues in restoration.The text was updated successfully, but these errors were encountered: