lucacome
lucacome

Reputation: 53

Can I use iBeacon in Android with Nearby Messages?

In the Beacon overview it says that the Proximity Beacon API supports iBeacon.

Does this mean I can detect an iBeacon and retrieve data attached to it with the Nearby Messages API in an Android app?

EDIT: Since the Get Beacon Messages for iOS says as a note: "The Nearby API for iOS only supports finding Eddystone beacons", but it doesn't say anything for the Nearby API for Android, maybe we can assume that it can see every type of beacons? I'd still like a confirmation about this.

Upvotes: 3

Views: 1783

Answers (2)

Dan Webb
Dan Webb

Reputation: 348

Nearby Messages on iOS now supports iBeacon scanning. And support for background scanning was just added. See the Nearby Messages Developer Site and the CocoaPod for details.

Upvotes: 1

MarcWan
MarcWan

Reputation: 2973

The good news is that Nearby supports iBeacon in addition to Eddystone beacons.

Using the Proximity Beacon API you can totally register iBeacons and attach data to them.

Then, you can tell Nearby to give you messages for the attachment data associated with these iBeacons (in Nearby, you just specify the attachment namespace for the appropriate strategies):

  MessageFilter filter = new MessageFilter.Builder()
      .includeNamespacedType("my-attachment-namespace", "")
      .build();
  Nearby.Messages.subscribe(client, messageListener, Strategy.BLE_ONLY);

See this Stackoverflow question for more hints on how to register an iBeacon using Proximity Beacon.

The note you saw is, however, correct: iBeacon is not supported on Nearby iOS just yet.

Upvotes: 4

Related Questions