bleak icon indicating copy to clipboard operation
bleak copied to clipboard

Notifications lost

Open karidavidsson opened this issue 3 months ago • 1 comments

Notification messages from the time BleakClient is created until client.start_notify() is called are lost.

Bonded client/device cache the notification status. When a client connects to bonded server they can be immediatly notifying and the server can send notification data immediatly. If server sends notification message before client.start_notify() is called that notification message is never delivered to the notification callback on the client side.

Platform Windows 10Pro. Bleak: 0.23.0 and 1.1.1

karidavidsson avatar Oct 03 '25 12:10 karidavidsson

This is a bit of an unfortunate limitation due to the way various OSes implemented notifications. I'm not sure if this is something we could handle or not.

There is also a related feature request or discussion somewhere about separating subscribing to notifications from enabling notifications, but I can't seem to find that right now. If we could make that work, it could help here as well.

dlech avatar Oct 06 '25 15:10 dlech