Google Proximity Beacon API: how to register iBeacon?

The Google Proximity Beacon API API documentation uses Eddystone everywhere:

https://developers.google.com/beacons/proximity/register

However, the documentation mentions two more types of beacons , AltBeacon and iBeacon.

If I understand correctly, something like this should be used (adapted from a Google example):

{ "advertisedId": { "type":"IBEACON", "id":"base 64 of what???"}, "status":"ACTIVE", "latLng": { "latitude": 51.4935657, "longitude": -0.1465538 } } 

However, what is the acceptable binary format for iBeacon UUID, Major, Minor (which should be base64'd)?

+7
ibeacon google-beacon-platform
source share
1 answer

advertisedId will be 20 bytes of iBeacon UUID + major + minor base64 encoded directly from the binary form. (that is, do not print it as hexadecimal or text before base64 encoding. Just take blob and base64, which).

Otherwise, your request looks correct!

+8
source share

All Articles