jordanebelanger / SwiftyBluetooth

Closures based APIs for CoreBluetooth
MIT License
209 stars 66 forks source link

How to reconnect when user closes app? #62

Closed jaksatomovic closed 1 year ago

jaksatomovic commented 1 year ago

How to automatically reconnect when user close app and then open app again

jordanebelanger commented 1 year ago

https://developer.apple.com/documentation/corebluetooth/cbcentralmanager/central_manager_state_restoration_options

There are some functions to help you use restore identifier on the Central class, check it out