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

OS Notification of text messages #112

Open
prettydiff opened this issue Apr 12, 2021 · 2 comments
Open

OS Notification of text messages #112

prettydiff opened this issue Apr 12, 2021 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@prettydiff
Copy link
Owner

This functionality is achieved in Windows 10. When a text message comes into the browser while the browser is not the active window it blinks orange in the taskbar. Unfortunately, I only know how to achieve this effect in Windows.

See: https://github.com/prettydiff/share-file-systems/blob/master/lib/terminal/server/osNotification.ts

I am looking for guidance to achieve a similar effect on other operating systems.

@prettydiff prettydiff added enhancement New feature or request help wanted Extra attention is needed labels Apr 12, 2021
@terrablue
Copy link

Have you considered the Web Notifications API (https://caniuse.com/notifications)? If you're willing to forgo Safari iOS support, it might be a possibility.

I have also seen something like a notification count API that actually shows a small number next to the browser icon, but I can't find it at the moment.

@terrablue
Copy link

https://developer.mozilla.org/en-US/docs/Web/API/Badging_API

There we go. Though this hasn't seen much adoption beyond Chrome-like Windows/macOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants