Capacitor BLE connection

I am using ionic with capacitor and I want to connect a bluetooth device, I am using plugin because I did not find one in the capacitor documentation.

The problem I have is that when trying to connect
this.ble.connect(id) .subscribe (
peripheral => this.onConnected (peripheral),
peripheral => this.onDeviceDisconnected (peripheral)
Both in android and ios it does not allow to connect, the window to place the pin appears but the device is immediately disconnected, I am using android 10 and in ios 12+ for android 9 or less the window for the pin appears as 5 seconds before disconnecting , I have already verified that it is not a device problem

If you have any ideas on how to fix this, I appreciate it.