Post

Replies

Boosts

Views

Activity

The app can't connect with new BLE device
Our iOS app uses a specific Bluetooth device from a hardware partner. The device sends BLE packets periodically and the phone receives these packets and sends the data to our DB. It also works in the background. We occur the following problem: the user connects to the BLE device, uses the app, and when the app was in the background and user updates the app to the new version (when the app detected its update we programmatically disconnect the previous device), and when the user tries to connect to another new BLE device - app received: Error Domain=CBATTErrorDomain Code=15 "Encryption is insufficient." UserInfo={NSLocalizedDescription=Encryption is insufficient.} In iPhone settings previous device appears as Disconnected. For connecting to a new BLE device we create a new CBCentralManager with new generated CBCentralManagerOptionRestoreIdentifierKey If the force close the app and restarts again - the app is able to connect to the new BLE device. Maybe someone has seen something the same, or knows how it can be fixed without force closing?
0
0
736
Oct ’22