-
Hello, I want to scan for a device advertising as iBeacon
Now the Kable part: The only way I can distinguish and scan for this iBeacon device is without any filters and filtering all advertisements by name. Any hints what I'm doing wrong or suggestions? Is Kable able and how to handle iBeacons on Android and iOS do anyone know? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Perhaps #396 might provide a filtering mechanism (filtering by name) for you?
With #401, are you able to scan (without any filters) and then query the |
Beta Was this translation helpful? Give feedback.
-
Hello, Mystery resolved and I'm writing some guidelines and takeaways for iBeacon and Android. First, be very careful about Bluetooth permissions when you are scanning and expecting iBeacons as results. Check here. In my case I tried to be very granular about permissions and I had to remove the assert never for location iBeacons looks like that they can "report physical user location", so About iBeacon specific data. As @twyatt proposed on Android you can have extension functions for the
or manually. Case closed 🕵️ |
Beta Was this translation helpful? Give feedback.
Hello,
Mystery resolved and I'm writing some guidelines and takeaways for iBeacon and Android.
First, be very careful about Bluetooth permissions when you are scanning and expecting iBeacons as results. Check here.
In my case I tried to be very granular about permissions and I had to remove the assert never for location iBeacons looks like that they can "report physical user location", so
ACCESS_FINE_LOCATION
permissions was required andandroid:usesPermissionFlags="neverForLocation"
should be removed.About iBeacon specific data. As @twyatt proposed on Android you can have extension functions for the
Advertisement
class and parse its raw bytes usingbytes
property. For parsing you can us…