Search code examples
androidaltbeaconeddystonegoogle-beacon-platformeddystone-url

How can i send notification using a Eddystone URL?


I am trying to send notification to android devices by using a Eddystone URL.

What have i tried so far:

  1. I have tried transmitting a Eddystone URL using the altbeacon library.

  2. I have transmitted a Eddystone URL using the Locate App.

The above transmitted URL's are successfully getting detected in this Scanner app.

Google Docs says to register the beacon in the Beacon Tools App to send a notification. So i tried to register the beacon in the Beacon Tools App. But the beacon are NOT getting detected. This is happening because i am using my phone as a beacon?

If so, How can i show a notification via my beacon transmitter ?

EDIT

My Phone runs Android 5.1 with Chrome 51. I have enabled Physical web in the privacy settings too. I have tested it on over 2- 3 devices. But still no luck!


Solution

  • EDIT: This problem was fixed in release 2.9. Make sure you have upgraded to that library version if you are having this problem.

    While detection of Eddystone frames on the iOS version of BeaconTools and Chrome work fine, the Android versions of these apps do not detect them. This is caused by the failure of the Android Beacon Library (version 2.8.1 and earlier) to include a separate Service ID PDU in the header to fully meet the spec. Apparently iOS versions of the apps were tolerant of this being missing, but Android versions were not.

    A fix has been proposed here: https://github.com/AltBeacon/android-beacon-library/pull/401. I have verified this change allows detection of transmissions on both apps on Android.

    I will be rolling a binary release of the library at the end of this week to include this change. If you need a quicker fix, please comment on the link above, and I will share a pre-release binary.