ios BLE pairing without user interaction

i need you help because i am new in swift development. i have developed an app using swift ui which shows list of ble, and i can with the ble device but user need to key in the password, is it visiable to do automatic paring and parsing pin from coding without any user interaction.

Best Regards,

Answered by Engineer in 825050022

You can connect without user interaction, but if you want to create a secure connection - meaning pairing - this will need user interaction to confirm that the device you are trying to pair to is indeed OK to pair.

While there are some nuances about pairing depending on the requirements from both devices, in most cases a PIN will be required.

For authenticated pairings, although there is a method called Out-Of-Band (OOB) which lets devices to exchange keys without entering a PIN, OOB is not supported in iOS.

Even then, the pairing would have needed some sort of user action, rather than pairing automatically and invisibly.


Argun Tekant /  DTS Engineer / Core Technologies

Hello, I’m new to Swift development. I’ve created a SwiftUI app that displays a list of BLE devices and allows users to connect. Currently, the user must manually enter a PIN to pair with the device. Is it possible to automate the pairing process and programmatically provide the PIN without any user interaction?

You can connect without user interaction, but if you want to create a secure connection - meaning pairing - this will need user interaction to confirm that the device you are trying to pair to is indeed OK to pair.

While there are some nuances about pairing depending on the requirements from both devices, in most cases a PIN will be required.

For authenticated pairings, although there is a method called Out-Of-Band (OOB) which lets devices to exchange keys without entering a PIN, OOB is not supported in iOS.

Even then, the pairing would have needed some sort of user action, rather than pairing automatically and invisibly.


Argun Tekant /  DTS Engineer / Core Technologies

ios BLE pairing without user interaction
 
 
Q