Can I use the NearBy API without the Proximity API?

I use a beacon that can work with either iBeacon or Eddystone, I create a scanner that has a service in the background that scans every 10 seconds for beacons that look like an android beacon library, but I thought I could use the NearBy API to get beacons using the scan service. Is it possible? I do not want to use ProximityAPI to register beacons, because these beacons will be there without the need to register them.

0
android ibeacon ibeacon-android google-beacon-platform
source share
1 answer

To use the API, your beacons must be registered in the Google Cloud and have attachments, as described here.

How the API works, you create a MessageListener and sign up to receive callbacks when beacons encounter messages attached to them:

When you subscribe, your application will automatically receive any messages that you have connected to the BLE beacons, in addition to messages published by your application on other devices.

https://developers.google.com/nearby/messages/android/get-beacon-messages

If no messages are added to them, you will not receive any callbacks

+3
source share

All Articles