Closed jagsus closed 3 years ago
This exception happen when you try to start transmitting with the BeaconTransmitter
class, and the beacon you use for transmission is set up with more identifiers than the layout. It looks like your code is trying to transmit a three identifier beacon with Eddystone UID, which only has two identifiers. That isn't allowed. Because you are using a wrapper around this library, that exception is obfuscated from you, and isn't very user friendly. Unfortunately, you have to expect this kind of difficulty when using wrapper libraries.
Here is the root cause of the exception: https://github.com/AltBeacon/android-beacon-library/blob/master/lib/src/main/java/org/altbeacon/beacon/BeaconParser.java#L668
Thanks for the quick reply, it helped a lot! Turns out the beacon that's used in the beacon_broadcast plugin is always built with 3 IDs, no matter the format...
Expected behavior
Eddystone UID Layout should parse without Error?!
Actual behavior
Steps to reproduce this behavior
I'm currently developing a Flutter App. I'm using the beacon_broadcast plugin, which uses this library. When trying to find out where the Error message comes from, I could only find it in the altbeacon code.
Mobile device model and OS version
Samsung Galaxy A10s / Android 10
Android Beacon Library version
2.16.4 (as set in the build.gradle from beacon_broadcast library)