Skip to content
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

Fork that works up to RN 69.7 #249

Open
Jake-Young opened this issue Nov 21, 2022 · 3 comments
Open

Fork that works up to RN 69.7 #249

Jake-Young opened this issue Nov 21, 2022 · 3 comments

Comments

@Jake-Young
Copy link

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 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.

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

@duylinhdang1998
Copy link

Is that work on IOS?
I have a problem that requestWhenInUseAuthorization is null and can't scan in ios

@gigflex
Copy link

gigflex commented Jan 20, 2023

Hi @Jake-Young ,

Do you have the running code as I m not able to make it work

@Srikanth-Enuguru
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants