startDeviceScan not returning any values in Android ...
See original GitHub issuePrerequisites
Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
- [ X] I am running the latest version
- [ X] I checked the documentation and found no answer
- [ X] I checked to make sure that this issue has not already been filed
Expected Behavior
Getting results from “startDeviceScan” method in android
Current Behavior
Previously it worked on an android device but after an upgrade of react-native from 0.60.4 to 0.60.5 it does not work anymore … Downgrading back to 0.60.4 doesn’t solve my problem … Everything works fine in IOS.
And yes permissions are set in the APP …
- Library version: 1.0.3
- Platform: Android.
- Contents of the
package.json
file:
{
"name": "some_app",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "react-native start",
"test": "jest",
"lint": "eslint .",
},
"rnpm": {
"assets": [
"src/assets/fonts"
]
},
"dependencies": {
"buffer": "^5.2.1",
"jwt-decode": "^2.2.0",
"lodash": "^4.17.15",
"moment": "^2.24.0",
"react": "16.8.6",
"react-native": "0.60.4",
"react-native-ble-plx": "^1.0.3",
"react-native-device-info": "^2.2.2",
"react-native-elements": "^1.1.0",
"react-native-gesture-handler": "^1.3.0",
"react-native-splash-screen": "^3.2.0",
"react-native-vector-icons": "^6.6.0",
"react-navigation": "^3.11.1",
"react-redux": "^7.1.0",
"reconnecting-websocket": "^4.1.10",
"redux": "^4.0.4",
"redux-saga": "^1.0.5",
"socket.io-client": "^2.2.0"
},
"devDependencies": {
"@babel/core": "7.5.5",
"@babel/runtime": "7.5.5",
"@react-native-community/eslint-config": "0.0.3",
"babel-jest": "24.8.0",
"eslint": "6.0.1",
"jest": "24.8.0",
"jetifier": "^1.6.4",
"metro-react-native-babel-preset": "0.54.1",
"react-native-dotenv": "^0.2.0",
"react-test-renderer": "16.8.6"
},
"jest": {
"preset": "react-native"
}
}
- Formatted code sample or link to a repository:
manager.startDeviceScan(null, null, (error, scannedDevice) => {
if (error) {
// no error given
console.info(error);
emit([error, scannedDevice]);
return;
}
// no result given in android
console.info(scannedDevice);
});
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:11 (1 by maintainers)
Top Results From Across the Web
startDeviceScan not returning any values in Android - GitHub
Previously it worked on an android device but after an upgrade of react-native from 0.60.4 to 0.60.5 it does not work anymore ......
Read more >bleManager.startDeviceScan not working on iOS react-native ...
I am trying to pair a gateway to React native app using the react-native-ble-plx. The below source code works fine in Android wheras...
Read more >react-native-ble-plx 2.0.2 | Documentation
Characteristic is a container for a value which can be read, written and monitored based on available capabilities. For example connection may look...
Read more >RxBLELibraries/react-native-ble - Gitter
I am getting errors on my react-native project for Android (for iOS all OK). The error is: Could not determine artifacts for com.github.Polidea: ......
Read more >react-native-ble-plx - npm
Utility function which can be used on device object directly without need to pass device UUID. Parameters and return value: Look above. async ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had a similar issue, but I did a battery reset for the BLE devices, which caused them to advertise themselves for scanning.
This info is available on the related wiki page