From 86fc1adb81bc006e98a6331782109243eeff42fe Mon Sep 17 00:00:00 2001 From: Taksh Date: Sun, 11 Oct 2026 06:54:15 +0530 Subject: [PATCH] drop notify-on-connect options from queued BLE connects Those keys are what raises the lock-screen accessory prompt that names the app. --- bitchat/Services/BLE/BLERadioController.swift | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bitchat/Services/BLE/BLERadioController.swift b/bitchat/Services/BLE/BLERadioController.swift index cf9d6c2d..26eeb927 100644 --- a/bitchat/Services/BLE/BLERadioController.swift +++ b/bitchat/Services/BLE/BLERadioController.swift @@ -233,12 +233,10 @@ final class BLERadioController { let peripheralID = candidate.peripheralID linkStateStore.beginConnecting(to: peripheral, at: Date()) peripheral.delegate = peripheralDelegate - let options: [String: Any] = [ - CBConnectPeripheralOptionNotifyOnConnectionKey: true, - CBConnectPeripheralOptionNotifyOnDisconnectionKey: true, - CBConnectPeripheralOptionNotifyOnNotificationKey: true - ] - central.connect(peripheral, options: options) + // No CBConnectPeripheralOptionNotifyOn* keys. Those options are what + // makes iOS raise the lock-screen "accessory would like to open + // bitchat" prompt, and accepting it names the app. + central.connect(peripheral, options: nil) scheduler.recordConnectionAttempt(at: Date()) SecureLogger.debug("\(logPrefix): \(candidate.name) [RSSI:\(candidate.rssi)]", category: .session)