-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to detect the beacons #266
Comments
I don't have android 12 device, to test but since this library is based on android beacon library, check their docs regarding necessary changes for android 12+. Another thing, for beacons ranging to work, you have to enable the device's location |
@sashko9807 Thank you for the response. I already added the permissions in manifest file. I enabled device's location also. But still unable to detect the beacons. |
Has the location permission been granted at runtime(e.g. prompting user to grant location permission when landing the page)? Other than that, I have no idea, why it doesn't work. In summary the flow of my usage is this: |
@sashko9807 Yes. Location permission is being granted at runtime only. Please refer to the below screenshots. I observed this error in console: error uniqueId may not be null |
Try updating the altbeacon library to a version 2.19.5 or 2.19.6, if it is not updated already. dependencies {
....
implementation 'org.altbeacon:android-beacon-library:2.19.5'
} If that doesn't work, I am out of ideas |
@sashko9807 I tried after updating the altbeacon library to a version 2.19.5. {"beacons": [], "identifier": "REGION3", "uuid": ""} |
@MacKentoch @mozart27 @Jake-Young @dmontecillo |
@Srikanth-Enuguru this helped me! |
I am recommending to use https://github.com/JanSneeuw/react-native-beacon-radar |
Version
1.2.9
Platform
Android
OS version
android 12
Steps to reproduce
Actual behavior
Console output:
Found beacons! {"beacons": [], "identifier": "REGION3", "uuid": ""}
Please help me.
Am I missing anything here?
The text was updated successfully, but these errors were encountered: