web icon indicating copy to clipboard operation
web copied to clipboard

Add Notification Sound Feature

Open birdpump opened this issue 1 year ago • 6 comments

This PR adds notification sounds to the Meshtastic web interface. It resolves #183. I added a notification sound that is played when a new message is sent to a connected node via a DM or channel. I have also added a bell icon on the sidebar that enables/disables the notification sound, and notifications are enabled by default. I can think of a few issues, such as the notification sound playing but there being no indication of where the new message is, so it may be a bit confusing if a lot of channels are displayed. Marking this PR as draft to get some feedback on the implementation. Please let me know if the logic checks out and is proper. I am relatively new to React.

birdpump avatar Apr 26 '24 04:04 birdpump

@birdpump This works great in my testing.

The only thing I could think to add is a few different notification sounds and a setting to change them. Could be per channel or system wide.

Hunter275 avatar Jun 16 '24 20:06 Hunter275

Not sure if it already exists (but I can't see it in your commits and haven't dug into the code), but it would be nice if this could work together with the browser's notification channel to allow more native OS notifications. (Web Push)

smiba avatar Jun 23 '24 19:06 smiba

Not sure if it already exists (but I can't see it in your commits and haven't dug into the code), but it would be nice if this could work together with the browser's notification channel to allow more native OS notifications. (Web Push)

I was planning on also adding web push when I get a chance, thanks for the suggestion.

birdpump avatar Jun 24 '24 00:06 birdpump

One issue with this is we need to make a notification sound, some discussion was had around various possibilities but nothing was decided.

If you're able and willing to create a notification sound and let Meshtastic use it let us know.

In the mean time we should find a sound we can use without license issues.

Hunter275 avatar Jun 24 '24 00:06 Hunter275

Here's a simple notification sound I whipped together, if you like it, I can export it in whatever file format you'd need. Meshtastic Notification.wav.gz

Kealper avatar Sep 28 '24 07:09 Kealper

I should be able to get web push implemented this week.

birdpump avatar Oct 10 '24 21:10 birdpump