Open warrenronsiek opened 7 years ago
Wow. I'll have to send Apple a card thanking them for keeping things simple and being so flexible...
If it is possible to expand 'react-native-ble' to cover the other API, then you can consider this a feature request. Otherwise you can close this.
The original goal behind this implementation was to track the noble api, what we need is a new (separate) bleno shim ;)
Hi, I'm trying to use react-native-ble on an Iphone to detect IBeacons. When I do this using plain noble on my computer I get advertisements that look like this:
This is what I would expect. The first hex in the buffer corresponds to Apple's company identifier, and I verified that the uuid embedded in the buffer is the same as the one I'm advertising via IBeacon.
However, when I do this in a react native app (i.e. scanning with react-native-ble) and simply logging the results, the
advertisement
key is empty. However, it seems to work for non-IBeacon advertisments. E.g.This is the advertisement for some other bluetooth thing in my house. (Not sure exactly what it is).
I have tried detecting the IBeacons both in my own app and in the 'advertisement-discovery' example app, and the same problem happens: react-native-ble discovers things, but IBeacons advertisements are missing. What is going wrong here? Why can't react-native-ble detect IBeacon advertisements?