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

Error : App not detecting bluetooth on Android 10 #205

Open
nlatreche opened this issue Feb 4, 2021 · 2 comments
Open

Error : App not detecting bluetooth on Android 10 #205

nlatreche opened this issue Feb 4, 2021 · 2 comments

Comments

@nlatreche
Copy link

Version

1.0.7

Platform

Android

OS version

android 10

Steps to reproduce

  1. npm install react-native-beacons-manager

  2. react-native link react-native-beacons-manager

  3. Implement
    import { DeviceEventEmitter } from 'react-native'
    import Beacons from 'react-native-beacons-manager'

    // Tells the library to detect iBeacons
    Beacons.detectIBeacons()

    // Start detecting all iBeacons in the nearby
    try {
    await Beacons.startRangingBeaconsInRegion('region', 'uuid')
    console.log(Beacons ranging started succesfully!)
    } catch (err) {
    console.log(Beacons ranging not started, error: ${error})
    }

    // Print a log of the detected iBeacons (1 per second)
    DeviceEventEmitter.addListener('beaconsDidRange', (data) => {
    console.log('Found beacons!', data.beacons)
    })

Expected behavior

Can detect bluetooth

Actual behavior

Error:
AndroidRuntime: java.lang.NoSuchMethodError: No interface method putArray(Ljava/lang/String;Lcom/facebook/react/bridge/WritableArray;)V in class Lcom/facebook/react/bridge/WritableMap; or its super classes (declaration of 'com.facebook.react.bridge.WritableMap' appears in /data/app/com.myapp3-NFZv6rmDdWLHauPmFl6xlA==/base.apk)
AndroidRuntime: at com.mackentoch.beaconsandroid.BeaconsAndroidModule.createRangingResponse(BeaconsAndroidModule.java:299)
AndroidRuntime: at com.mackentoch.beaconsandroid.BeaconsAndroidModule.access$300(BeaconsAndroidModule.java:37)
AndroidRuntime: at com.mackentoch.beaconsandroid.BeaconsAndroidModule$2.didRangeBeaconsInRegion(BeaconsAndroidModule.java:280)
E AndroidRuntime: at org.altbeacon.beacon.BeaconIntentProcessor.onHandleIntent(BeaconIntentProcessor.java:68)
E AndroidRuntime: at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:78)
E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107)
E AndroidRuntime: at android.os.Looper.loop(Looper.java:237)
E AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:67)

@gaveen5555
Copy link

Did you find a solution?

@dmontecillo
Copy link

Use this git://github.com/MacKentoch/react-native-beacons-manager.git#46089b8 in your package.json instead of the release version.

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

3 participants