Determining unique Bluetooth MAC address for iPhone and Android

JnBrymn picture JnBrymn · Nov 15, 2010 · Viewed 7.1k times · Source

Is it possible to determine the unique bluetooth MAC address for an iPhone and an Android (and to a lesser extent, other smartphones) from within an app on said device? Is my assumption that the MAC address is universally unique correct?

A general yes or no would be helpful. Example code in the case of an iPhone or an Android would be extremely helpful.

Answer

Dennis Mathews picture Dennis Mathews · Nov 16, 2010

Yes the bluetooth MAC address will always be unique. In Android you can use the getAddress() api on the BluetoothAdaptor. It returns the MAC address as a String.

On iPhone it looks like there is no public API to read the MAC address , see this thread