-
Notifications
You must be signed in to change notification settings - Fork 85
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
BleClient.write: Writing characteristic failed on WebView #366
Comments
@pwespi Any ideas, comments? Do I need to add more info about the problem? |
I'm not sure what's going on. Some questions:
|
There is only one write characteristic to the device I am connecting. I was able to write to the device directly using this plugin, although I did not receive any feedback on this: It was just completed without errors. Disconnect happens because of the error. No disconnection on successful write. My question is, why can write be failing when passed to another library? It is successful when called manually with the same parameters. |
Code fails exactly here. Do you have any suggestions to debug? |
This is the Android documentation about the write call: About the return value it says only
These are the options I can think of. Also if Does already the first write fail or do some writes work and it fails after some time? Have you tried different Android devices? |
It looks like this issue didn't get the information it needed, so I'll close it for now. If I made a mistake, sorry! I am just a bot. Have a great day! |
@yucehasan Hi there :) Have you finally manage to make it works ? |
@schnouz Hi :) Yes, we did. We tried a different strategy. Instead of injecting bluetooth to the app |
I have the same error, |
SOLUTION : I have 2 test phones. 1 xiaomi mi5 with android8 and neither notification nor write works to send data, and with android10 with mi9 it works perfectly. I have tried giving bluetooth permissions as the library says, but nothing. Try more current mobiles with a more modern Android version. @yucehasan |
Describe the bug
I use a library which requires some functionality from
navigator.bluetooth
. My solution is creating a similar object with only the required functionalities implemented and assigning it tonavigator.bluetooth
. Other functions worked fine, likerequestDevice
,connect
,getPrimaryServices
etc. But the problem is withwrite
. I cannot find additional info on why it failed.To Reproduce
Expected behavior
Working code or better explaining error message.
Screenshots
Plugin version:
Smartphone (please complete the following information):
Additional Context
Trying to connect a Ledger Nano X device
The text was updated successfully, but these errors were encountered: