-
Notifications
You must be signed in to change notification settings - Fork 316
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
Comments
Did you find a solution? |
Use this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
1.0.7
Platform
Android
OS version
android 10
Steps to reproduce
npm install react-native-beacons-manager
react-native link react-native-beacons-manager
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)
The text was updated successfully, but these errors were encountered: