BLE Pairing alert not shown after pairing failed 2-3 times

We do have an app where we try to connect via BLE to our own hardware. To trigger the pairing process we attempt a read operation on an encrypted characteristic. If the devices are note paired/bonded yet we do receive the expected CBATTErrorInsufficientEncryption Error and the native alert opens to enter the PIN.

If the native pairing alert is now canceled 2-3 times the native alert will not be shown for any attempt afterwards unless I wait around 3 minutes. Is there a certain timeout for BLE devices when the system shows the pairing alert again in case it failed multiple times? I didn't find anything in that regard in the documentation.

If you are certain it is not your app code or your BLE hardware causing this issue, it would be worth creating a bug report. Full diagnostic logs would be needed. So please go to https://developer.apple.com/bug-reporting/profiles-and-logs/ and follow the instructions for Bluetooth for iOS to install a logging profile on your device.

Then, once the logging profile is installed:

  • reproduce the problem, keeping track of the actual time of the actions you take and the result you see.
  • please have your app use os_log()/NSLog() statements to indicate what CoreBluetooth actions it is taking
  • make sure there aren’t any extraneous BLE devices around, and no other apps are trying to connect to some other BLE device while you are conducting this test.

Once the problem is reproduced, follow the instructions at the above link to trigger a sysdiagnose

Also let them know the BLE hardware you are using, along with hardware and firmware version info.

What would also help is if you can provide a sample project which builds, that focuses on reproducing the problem. Please do not send your existing entire code base.

Once you have all the info create a Feedback Report at https://developer.apple.com/bug-reporting

Thank you for confirming that this is not a desired behavior. I will try to isolate the issue and provide a feedback report as soon as possible.

BLE Pairing alert not shown after pairing failed 2-3 times
 
 
Q