Re: How can we retrieve a list of paired/connected Bluetooth 2 (or "classic") devices?
Re: How can we retrieve a list of paired/connected Bluetooth 2 (or "classic") devices?
- Subject: Re: How can we retrieve a list of paired/connected Bluetooth 2 (or "classic") devices?
- From: Matthias Ringwald <email@hidden>
- Date: Thu, 14 Sep 2017 21:45:52 +0200
Hi Nick
There's no public API to get the list of connected or paired devices.
In theory, you could just call -[BluetoothManager pairedDevices]
(https://github.com/nst/iOS-Runtime-Headers/blob/master/PrivateFrameworks/BluetoothManager.framework/BluetoothManager.h
<https://github.com/nst/iOS-Runtime-Headers/blob/master/PrivateFrameworks/BluetoothManager.framework/BluetoothManager.h>)
of the private BluetoothManager framework.
However, it would only work if you sign your app with some com.apple.BTServer.*
entitlements (see Preferences.app for comparison), which you can only do when
you deploy to a device with a Jailbreak.
Also, no app in the App Store should have these Entitlements, so no app should
be able to get this list on a recent iOS version.
Why do you need to get this list?
Cheers
Matthias
> On 14 Sep 2017, at 17:10, Nick Gilbert <email@hidden> wrote:
>
> Hi all,
>
> How can we retrieve a list of Bluetooth 2 / 2.1 "classic" devices which the
> phone is currently paired with and/or connected to? I have seen app-store
> apps do this, but I can't find any API or code samples which show bluetooth 2
> devices. Typically, this includes things like many makes and model of car,
> and older headsets and speakers.
>
> Apps like Light Blue can only see BT 4 and BLE devices and doesn't show any
> of the cars I've tested with even when they are paired and connected.
>
> Does scanning for connected/paired bluetooth devices require a different API?
> I'm quite stuck with this problem - possibly as it's rare to need to scan
> for such old devices.
>
> Thanks,
> Nick
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Bluetooth-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden