views:

222

answers:

1

I'm trying to do some proximity detection of iPhones but I need to get their Bluetooth MAC address programmatically. Does anyone knows how ?

I assume Bluetooth is activated but no device is paired with the iPhone.

+1  A: 

There is no public API to get this information.

If this is an internal or jailbreak application you can get the value of the kLockdownBluetoothAddressKey key via liblockdown.dylib

rpetrich
Thanks. I was hoping I could get it more or less the same way we can retrieve the WiFi MAC address...
drkbrd
I think that might be workable if the iPhone is in tethering mode over Bluetooth.
rpetrich