react-native-beacons-manager icon indicating copy to clipboard operation
react-native-beacons-manager copied to clipboard

Beacons.startRangingBeaconsIsRegion() crashes App

Open jiwooIncludeJeong opened this issue 4 years ago • 3 comments

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 ,,,, :(

jiwooIncludeJeong avatar Feb 21 '21 08:02 jiwooIncludeJeong

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

samuel-joly avatar Mar 04 '21 14:03 samuel-joly

@samuel-joly thanks!!

hongchal avatar Mar 07 '21 05:03 hongchal

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

brnyza avatar Jun 21 '21 15:06 brnyza