-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Desktop notifications #155
Comments
Would we want to "polyfill" the web notification api so that notifications work the same as in a browser? |
We didn't have this on our roadmap, but I like @nklayman 's idea for polyfilling. Nice one. |
Seems like this would be a good library to use for that (behind a feature flag of course): I think the right approach would be to make a tauri API that hooks into this feature that can then be called from JS or from RS |
here's the branch where this is happening: |
And here's the PR |
Closed by #505 Example: Notification.requestPermission()
.then(response => {
if (response === 'granted') {
new Notification('title', { body: 'some text' })
}
}) |
Describe the solution you'd like
An easy API to interact with whatever the current OS's desktop notifications system is.
Describe alternatives you've considered
Manually launching a new window disguised to look like a desktop notification (not worth the effort)
The text was updated successfully, but these errors were encountered: