You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For those targeting Android 12+ you need to update your permissions to the following:
Now instead of BLUETOOTH and BLUETOOTH_ADMIN we now only need BLUETOOTH_SCAN.
So your permission for Bluetooth in you Android Manifest should look like:
<!-- Replace both of these -->
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<!-- -->
<!-- With this -->
<uses-permission android:name="android.permission.BLUETOOTH_SCAN"/>
<!-- -->
NOTE - You also need to change the required permissions in manifest for this library to the above. Again you only need BLUETOOTH_SCAN in the library manifest. You can update this yourself or use our fork above.
If you aren't already you also need to ask for both ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION.
If you are updating your own library, permission changes alone will not work for Android. You need to change the Altbeacon library version to 2.19.4 at least as done here: #237
The text was updated successfully, but these errors were encountered:
@Jake-Young@gigflex@duylinhdang1998 Are you able to scan the iBeacons using this library?
If yes could you please share your code or help me in fixing #266.
We have recently forked this library to push the required changes need for this library to work with later versions up to 0.69.7.
We have also dealt with the changes needed for the library to work with Android 12. It also works for iOS.
NOTE - We have specifically only tested this for ranging.
Our Fork: Here
For those targeting Android 12+ you need to update your permissions to the following:
Now instead of
BLUETOOTH
andBLUETOOTH_ADMIN
we now only needBLUETOOTH_SCAN
.So your permission for Bluetooth in you Android Manifest should look like:
NOTE - You also need to change the required permissions in manifest for this library to the above. Again you only need BLUETOOTH_SCAN in the library manifest. You can update this yourself or use our fork above.
If you aren't already you also need to ask for both ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION.
See permissions changes here: Android 12 Changes
If you are updating your own library, permission changes alone will not work for Android. You need to change the Altbeacon library version to 2.19.4 at least as done here: #237
The text was updated successfully, but these errors were encountered: