iBeacons are small signal generators that advertise their location via Bluetooth. An Android or iOS Device may look for these signals and then receive updates about proximity to the beacon.As a developer, you can collect this data, process it and then send it to Sailthru Mobile for creating audiences, and triggering automated messages. Note: iBeacon is beacon technology that is owned by Apple. The name "iBeacon" has become synonymous with beacon technology in general, as it is widely used.
Data from iBeaconsThe Beacon protocol has several key attributes, including:
- UUID: A unique, hexadecimal identifier for the device
- Major: A non-negative integer
- Minor: A non-negative integer
- RSSI: A decibel value of signal strength from the beacon
Understanding Major and MinorRegular beacon devices have three attributes - a UUID, Major and Minor. Apple recommends using one UUID for all your beacons, and differentiating locations hierarchically with major and minor versions. Getting the actual data via your provider's SDK is dependent on the SDK implementation, so refer to their documentation for instructions. On iOS Devices, you can use the CoreLocation API, which you can read about on Ray Wenderlich.
Getting Data to Sailthru MobileNow that you've got the data, you can finally pass it to Sailthru Mobile. We recommend doing this via User Attributes and Custom Events. Some useful User Attributes you might want to set may be:
- Last seen (Date)
- Distance (Float)
- Major (Integer)
- Minor (Integer)
- UUID (String)
- iBeacon seen
- iBeacon with this name seen