-
Notifications
You must be signed in to change notification settings - Fork 356
Description
@ #602 When try to init CBCentralManager with option CBCentralManagerOptionRestoreIdentifierKey (CBCentralManager(delegate: <CBCentralManagerDelegate?>, queue: <DispatchQueue?>, options: <[String : Any]?>)) you getting crash:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '<CBCentralManager: 0x600002a73c40> has provided a restore identifier but the delegate doesn't implement the centralManager:willRestoreState: method'
I believe it happens because at the moment of initialization CBCentralManager calling delegate method centralManager:willRestoreState: if this key present. But we don't actually have delegate passed as a parameter at time of initialization. @tonyarnold @srdanrasic Do you have any suggestions how can I fix it? Thanks in advance.