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

Not working at all #432

Open
LeoMH opened this issue Oct 8, 2020 · 11 comments
Open

Not working at all #432

LeoMH opened this issue Oct 8, 2020 · 11 comments

Comments

@LeoMH
Copy link

LeoMH commented Oct 8, 2020

I try to connect to an ESP32 using your plugin. But every time I use a function of the plugin, the code seems to stop working and neither of the callbacks gets called. One example would be this: bluetoothSerial.connect("24:6F:28:7B:D8:76",success, failure). The app stops there and no callback gets called. I can't figure out what my mistake is.

@philcom1
Copy link

philcom1 commented Oct 8, 2020

Are you using an Android or iOS device for scanning and connecting?

@LeoMH
Copy link
Author

LeoMH commented Oct 8, 2020

Android

@WaldiirNeto
Copy link

are you using android 10? this plugin is having problems in this version of android

@LeoMH
Copy link
Author

LeoMH commented Oct 10, 2020

Thanks for responding. I got it working. I had to remove android and add it again.

@philcom1
Copy link

Nice! Which @ionic-native/bluetooth-serial version are you using? Maybe it could also be this problem ;)

@LeoMH
Copy link
Author

LeoMH commented Oct 10, 2020

It probably did not get added to the platform when I installed it. I used the bash command to add it, so I guess it was the most recent release.

@WaldiirNeto
Copy link

whoever has this problem, it could probably be that you have disabled the option to not allow access to the location just in the use of the app, let it always use the location.

@WaldiirNeto
Copy link

I don't think there's a problem with a plugin, but with the mobile settings

@aavelyn
Copy link

aavelyn commented Dec 3, 2020

Hi, we have the same issue with Galaxy Tab A7 and Android 10. Location Permission is granted.
But neither does discoverUnpaired nor setDeviceDiscoveredListener emit any values, while another tablet with android 8 or 9 work fine.

Does anyone has a fix or workaround?

@inlacou
Copy link

inlacou commented Jan 11, 2021

Created a pull request that should solve this issue.

are you using android 10? this plugin is having problems in this version of android

The issue on Android 10 and above is that ACCESS_FINE_LOCATION is needed instead of ACCESS_COARSE_LOCATION.

@Lucas-Wanat
Copy link

Lucas-Wanat commented Aug 30, 2022

whoever has this problem, it could probably be that you have disabled the option to not allow access to the location just in the use of the app, let it always use the location.

@WaldiirNeto
How could I do this? I still don't quite understand. And my problem is only in the connect() method that does absolutely nothing, and I use android 8.1, I already tried to connect with ESP32, other android and windows 10.

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

6 participants