Search code examples
iosiphonebluetooth-lowenergycore-bluetoothcbperipheralmanager

Is there a way to know if the advertising device is an android or ios?


My iPhone device is advertising as a peripheral and there is a separate central that reads advertising data based on uuid. I think i cannot advertise both service uuid and manufacture data at the same time on iOS. So is there any way that the central can detect whether the advertising device is an iPhone or Android? For iOS devices the manufacturer id is (004C) for android i don't know.


Solution

  • If you use custom advertising packets (think iBeacons), you can embed whatever information in them you'd like (including whether it's an Android or iOS device advertising).

    Alternatively, you can embed data in a scan response, which most mobile phones will request automatically.

    Here is a good primer for Bluetooth Low Energy communication, with a good focus on advertisements: https://www.argenox.com/library/bluetooth-low-energy/ble-advertising-primer/