Black Lives Matter. Please consider donating to Black Girls Code today.

Has anyone created a Browser Notification Component?

I’m prototyping a user-driven dashboard application based on Dash. One of the early feature request I’m getting from my users is they would like notifications to pop up when certain conditions are met.

While I’m almost purely a Python developer and rarely touch JavaScript I’ve been reading the documentation https://developer.mozilla.org/en-US/docs/Web/API/notification and https://dash.plot.ly/react-for-python-developers and it looks doable.

But before I dive in, has anyone already done this? Or in general if anyone wants to give me pointers I’d be super appreciative.

There’s dcc.ConfirmDialog, it shows a window.confirm popup, but the notification api is nicer and I don’t think it’s been done before as a dash component but there might be a react library you can wrap.

1 Like

Curious if anyone was able to figure this out…

was this ever doable? Maybe with flask?