Contribute
This is a stub and is waiting for contributions. Get involved by visiting us on GitHub or joining us on Discord.
Send native notifications to your user using the notification plugin.
Install the notifications plugin to get started.
Use your project’s package manager to add the dependency:
Run cargo add tauri-plugin-notification
to add the plugin to the project’s dependencies in Cargo.toml
.
Modify lib.rs
to initialize the plugin:
If you’d like to use notifications in JavaScript then install the npm package as well:
Here are a few examples of how to use the notification plugin:
The notification plugin is available in both JavaScript and Rust.
Follow these steps to send a notification:
Check if permission is granted
Request permission if not granted
Send the notification
Contribute
This is a stub and is waiting for contributions. Get involved by visiting us on GitHub or joining us on Discord.
Contribute
This is a stub and is waiting for contributions. Get involved by visiting us on GitHub or joining us on Discord.
Contribute
This is a stub and is waiting for contributions. Get involved by visiting us on GitHub or joining us on Discord.
Contribute
This is a stub and is waiting for contributions. Get involved by visiting us on GitHub or joining us on Discord.
Aside from normal sanitization procedures of user input there are currently no known security considerations.
© 2024 Tauri Contributors. CC-BY / MIT