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

Beacons.startRangingBeaconsIsRegion() crashes App #207

Open
jiwooIncludeJeong opened this issue Feb 21, 2021 · 3 comments
Open

Beacons.startRangingBeaconsIsRegion() crashes App #207

jiwooIncludeJeong opened this issue Feb 21, 2021 · 3 comments

Comments

@jiwooIncludeJeong
Copy link

jiwooIncludeJeong commented Feb 21, 2021

Version 1.0.7
Android 28
react native 0.63.4
npm 6.13.4

const detectBeacon = async () => {
const id = 'REGION1';
const uuid = [UUID];

    try {
        await Beacons.startRangingBeaconsInRegion(id, uuid);
        console.log(`Beacons ranging started succesfully!`)
    } catch (err) {
        console.log(`Beacons ranging not started, error: ${err}`)
    }
    return;
}

Platform is android and app crashes when call function "Beacons.startRangingBeaconsInRegion(id, uuid);"
At console, i can show Beacons ranging started succesfully! and then app crashes.
Is there any way to resolve this without downgrading RN version ?

Plz give me the answer ,,,, :(

@samuel-joly
Copy link

I've solved this by updating node_modules\react-native-beacons-manager\android\build.gradle
compile 'com.facebook.react:react-native:0.12.+' to compile 'com.facebook.react:react-native:0.63.+'

@hongchal
Copy link

hongchal commented Mar 7, 2021

@samuel-joly thanks!!

@brnyza
Copy link

brnyza commented Jun 21, 2021

For me worked using like this: compile 'com.facebook.react:react-native:+'

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