BLE pairing request Not triggered while connecting

I have BLE central app on my iphone that connects to linux device , I want to pair the device before transmission but the pairing request does. not appear, im using the heart rate service for communication. How can i forcefully trigger the pairing request.

The Peripheral use bluetoothctl 5.41 bluez

When i try to connect to the device from the OS itself i get a Pairing Unsuccesesful pairing too long error.

With CoreBluetooth, there is no way to initiate a pairing using the app. Pairing is automatically triggered by the system when either side tries to access a protected characteristic of the other device.

So, to "force" a pairing, you must define a protected characteristic on your peripheral, and after connecting (without pairing), you must attempt to access that characteristic, which will automatically trigger a secure connection request and the pairing process.

BLE pairing request Not triggered while connecting
 
 
Q