Search for Eddystone beacons using the Google API Google

I connected the data to the Eddystone beacons using the Proximity Beacon API. I want to receive Beacon attachments using the message API.

I followed the steps outlined at https://developers.google.com/nearby/messages/android/get-beacon-messages .

But I can not read Beacon applications. The onFound() method does not receive a call

+1
source share
3 answers

Check the following ...

  • Set up a subscription response callback and call startResolutionForResult in the Status object if Status was APP_NOT_OPTED_IN. See github example

  • Make sure you enable the API located in the Developer Console for your application. Step 3 here

  • Use Strategy.BLE_ONLY in the call to subscribe

  • Finally, if none of these problems help, try the standalone BLE scanning application to make sure that the beacon is indeed broadcast.

If you want to publish a more complete code sample, one of our engineers can take a look at

(I am working on an API)

+2
source

Another idea. Make sure the API key in the manifest is from the same Google Developers Console project that you used when you linked your data to beacons. Beacon attachments are private to the project that created them.

+1
source

Another suggestion for someone else who is reading this question who is having connection problems. Raised from another answer:

This may seem strange - but try turning Wi-Fi on and off. Many cheaper devices do not work well with Bluetooth and do not connect, but for some reason disables Wi-Fi and fixes it for a while.

I had a similar problem: everything in my code was correct, but did not detect beacons. I even tried with the applications of the manufacturers, and they also could not find the beacon (but their version for the iPhone was made). I turned off Wi-Fi, then turned on again, and the manufacturer application worked, as well as mine.

0
source

All Articles