-
Notifications
You must be signed in to change notification settings - Fork 354
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
cant scan any devices #582
Comments
Here's the rest of the code for reference:
|
Is this on Android or iOS? Which version? It could be related to #579. Did you try closing the other app and restarting all related devices? |
I'm running android version 10 on a pixel 3a. I had all apps closed when running it. Looking into the android studios catlog, oddly I could see the name of the device I'm trying to connect to, despite not being able to actually connect to with startscan. |
Added an update on #579. I don't own any Android devices anymore, so it's much harder to develop. I believe the following needs to be done:
|
I also have similar problems. |
Hi, I had the same issue, the API stated: {"status": "scanStarted"} but did not get any results. I performed a factory reset and allowed every permission during the phone setup (I recall something about using Bluetooth for location, which I obviously allowed). I also added which I was not using before the factory reset. And now it works.. So I would assume it is related to permissions. Although I tried many combinations before the factory reset. This is what I am using in my manifest:
|
Manually setting the location permission to on for whatever application the plugin is used in did work. However, this should be a popup for the first time when starting/using this application/bluetooth. Is this something that someone can fix? Can this be set for the plugin or must it be done in cordova? |
Permissions can be requested via: https://github.com/randdusing/cordova-plugin-bluetoothle#requestpermission |
Bluetooth and location services are enabled, and I have successfully initialized it.
I am trying to connect to an ESP32, and using an nRF bluetooth app I can see and connect to the ESP32. But when I scan for devices on my app (using Ionic with this plugin) I can't seem to find anything. There is no successful callback from startscan=>scanResult. I get the callback scanStarted, but nothing after that.
Where am I going wrong here?
The text was updated successfully, but these errors were encountered: