-
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
After BleClient.getConnectedDevices() cant receive notifications #460
Comments
Thank you for using this plugin. I can confirm the behavior you're describing, however I don't understand why this happens. I will look into it some more. What are you using The log about "Resolve callback not registered for key:..." is a known issue, see #447, but this is unrelated to getConnectedDevices. |
@pwespi Thank you for answer, i am using
i did the same thing |
Hi. I have a BLE button, that stops beaconing after it is bonded to iOS to safe the power consumption. So i have no other way to get deviceId to use connect() after app starts, then periodicaly use getConnectedDevices(). Do you have any idea what else could i use? |
Why do you need to periodically call |
i've spent HOURS of debugging trying to figure out which was the problem of notifications not receive, and it was the getConnectedDevices call. |
This has been fixed in 2.2.1. |
Describe the bug
Everything is working fine in android, but in iOS, device stops receiving notification response after calling BleClient.getConnectedDevices(),
and everytime it is throwing error, "Resolve callback not registered for key: ...." But when BleClient.getConnectedDevices() is not called, it is still working.
I have tried to remove BleClient.getConnectedDevices() from whole project, the app is working fine in iOS.
To Reproduce
Expected behavior
To receive a notification in a callback defined in BleClient.StartNotification()
Plugin version:
Desktop (please complete the following information):
Smartphone (please complete the following information):
LOGS
LOGS :
`zap To Native -> BluetoothLe addListener 80124203
zap To Native -> BluetoothLe startNotifications 80124204
.
.
.
Resolve setNotifications|<SERVICE_ID>|<B7__UUID> Successfully set notifications.
zap TO JS undefined
Resolve callback not registered for key: read|<SERVICE_ID>|<B7__UUID>
zap TO JS {"value":"ba 00 00 04 01 00 00 "}
.
.
// RECEIVED A NOTIFICATION HERE
.
.
.
.
// Now main culprit
//-------------------
zap To Native -> BluetoothLe getConnectedDevices 80124205
zap TO JS {"devices":[{"deviceId":"-------","name":"--------"}]}
//-------------------
.
.
.
.
.
zap To Native -> BluetoothLe read 80124206
Resolve read|<SERVICE_ID>|<7E__UUID> 00 00 00 00 b7 ae 00 00 32 b7 00 cc 00 2f 00 00
zap TO JS {"value":"00 00 00 00 b7 ae 00 00 32 b7 00 cc 00 2f 00 00 "}
.
.
.
.
.
zap To Native -> BluetoothLe write 80124207
Resolve write|<SERVICE_ID>|<C7__UUID> Successfully written value.
zap TO JS undefined
Resolve callback not registered for key: read|<SERVICE_ID>|<B7__UUID>
.
.
.
.
.
// FAILS TO GIVE NOTIFICATION HERE
.
.
.
3 seconds time gap
.
.
.
zap To Native -> BluetoothLe stopLEScan 80124208
Stop scanning.
zap TO JS undefined`
The text was updated successfully, but these errors were encountered: