Comments (6)
And here's the PR
#505
from tauri.
Would we want to "polyfill" the web notification api so that notifications work the same as in a browser?
from tauri.
Closed by #505
The notifications API is going to be accessible with the Notification WEB API. Currently we'll support title
, body
and icon
.
Example:
Notification.requestPermission()
.then(response => {
if (response === 'granted') {
new Notification('title', { body: 'some text' })
}
})
from tauri.
We didn't have this on our roadmap, but I like @nklayman 's idea for polyfilling. Nice one.
from tauri.
Seems like this would be a good library to use for that (behind a feature flag of course):
https://docs.rs/notify/5.0.0-pre.1/notify/
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
from tauri.
here's the branch where this is happening:
https://github.com/tauri-apps/tauri/tree/feature/notification
from tauri.
Related Issues (20)
- [bug] `cargo tauri dev` not working with `tray-icon` field in `tauri.conf.json` HOT 4
- [bug][v2][only MacOS] no method named `transparent` found for struct `WebviewWindowBuilder` in the current scope HOT 3
- [bug] proxy_url or with_proxy_config not working on windows 11
- [bug] backdrop blur not working when enable window transparent.
- [bug][v2][macos] Can't build Android - vanilla install HOT 1
- [bug] bun create tauri app with invalid folder name HOT 1
- [bug] resource_dir_from() function, used for looking up resource files - not yet implemted for IOS?
- Windows application shortcut abnormality. HOT 4
- [bug] failing to run tauri2 with app extension on the iOS Simulator HOT 3
- [feat]: Reduce boilerplate for command definitions in Tauri v2
- [feat] Generate metainfo for deb file HOT 3
- [bug] tauri.shell.open does not working on differtent linux distribution than building platform with appimage build
- [feat] [v2] How to create a child web view
- [feat] `path.relative` API method HOT 1
- [bug] `plugin` command failing for mobile plugins HOT 3
- [bug] `--target` option in `tauri ios build` doesn't accept target triples
- [bug]
- println don't show in the terminal and how to turn off the ios info(too much) . HOT 2
- [bug] Android apk crash at startup caused by `WryActivity` can't find `create()` HOT 3
- [bug] nsis deep link doesn't work HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tauri.