The Question
I'm writing an app for a Bluetooth peripheral, and I want to pair the peripheral to the iPhone directly in my app, without asking the user to go the Settings app and do the pairing manually. I see the "Sony Headphones Connect" app does exactly that, and I want the same ability in my app. I can't find anything for doing this in Core Bluetooth. Any idea?
Further Info
Here's what the Sony app does. Initially the peripheral (a headphone) is not paired to the iPhone, as shown here:
I run the app and turn on the power of the headphone as instructed by the app:
After a while, the app finds and shows the headphone, and I tap it to register:
A dialog shows up and I tap again:
Finally the app reports that the headphone is registered.
Now in the Settings app I can see that the headphone is already paired and connected by the Sony app: