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

Bluefy - notifications support #470

Open
Dima1322 opened this issue Jan 2, 2023 · 10 comments
Open

Bluefy - notifications support #470

Dima1322 opened this issue Jan 2, 2023 · 10 comments
Labels
bug Something isn't working

Comments

@Dima1322
Copy link

Dima1322 commented Jan 2, 2023

Describe the bug
Notifications are not working in Bluefy browser on ipad 10.2 (2021) - iPadOS 16.1
Bluefy browser: https://apps.apple.com/us/app/bluefy-web-ble-browser/id1492822055
Read/Write operations work.
In the native version (generated using capacitor) of the same app notifications work well.
Web Bluetooth API notifications also work (for testing was used this sample: https://googlechrome.github.io/samples/web-bluetooth/notifications.html).

Plugin version:
"@capacitor-community/bluetooth-le": "^2.0.1"

@Dima1322 Dima1322 added the bug Something isn't working label Jan 2, 2023
@Dima1322
Copy link
Author

Dima1322 commented Jan 6, 2023

I have also tested this on iPhone 13 pro with iOS 16.2 . The same issue occurs.

@pwespi
Copy link
Member

pwespi commented Jan 7, 2023

Thank you for the issue. I was able to reproduce it.

In the Bluefy Bluetooth logs, I see the following error:
StartCharacteristicNotifications: Request was rejected.

However, I have no idea why this happens and don't know how to debug Bluefy. I contacted the Bluefy support. Hopefully they can help.

@y3nd
Copy link
Contributor

y3nd commented Mar 24, 2023

Same issue here.

Any news from Bluefy ? The war might have impacted their activity..

@pwespi
Copy link
Member

pwespi commented Mar 28, 2023

I haven't heard back from Bluefy yet.

@AurelienGasser
Copy link

AurelienGasser commented Jun 1, 2023

@pwespi any update from Bluefy?

@pwespi
Copy link
Member

pwespi commented Jun 7, 2023

No, I still haven't heard from Bluefy.

@dugrema
Copy link

dugrema commented Feb 5, 2024

This is still not working with iPhone 7 (iOS 15.8.1), Bluefy 3.9.0.

I was able to avoid the error (StartCharacteristicNotifications: Request was rejected.) by adding both the notification and indicate flags to the characteristic description in the peripheral. But the notifications are still not being processed.

If you do Object.getOwnPropertyNames(Object.getPrototypeOf(characteristic)) on the characteristic object, the one in bluefy (unlike Chrome) does not have the oncharacteristicvaluechanged event handling property. I'll venture that the event driven notification feature is simply not implemented or works very differently...

I'm using a RaspberryPi Pico W as peripheral. The same javascript code works with Chrome 116+ on Mac OS 10.13 and Windows 10.

The readValue and writeValueWithResponse operations are working fine for me in Bluefy.

@rebtop
Copy link

rebtop commented Feb 27, 2024

Is Bluefy a viable app considering that they don't respond?

@curlyz
Copy link

curlyz commented Apr 15, 2024

Hey guys, just come across this. I can help if there is sample code. I have use BlueFy for 2 Bluetooth products using ESP32. Work normal for me. Here is things to watch out

  • Make sure you have location service enabled for the device
  • For the bluetooth setup process, have a delay between each call, requestDevice, findService, findCharacteristic, startNotify ... (I use 500ms delay, this is due to WebBluetooth problem)

@rebtop
Copy link

rebtop commented Jun 4, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants