Skip to content

Scanning for iBeacons #400

Answered by azlekov
azlekov asked this question in Q&A
Nov 12, 2022 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

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 and android: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 using bytes property. For parsing you can us…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@azlekov
Comment options

@azlekov
Comment options

@twyatt
Comment options

@azlekov
Comment options

@twyatt
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by azlekov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants