Contribute
This is a stub and is waiting for contributions. Get involved by
visiting us on GitHub or joining us on Discord.
使用通知提示插件以向你的用户发送原生通知。
This plugin requires a Rust version of at least 1.77.2
Platform | Level | Notes |
---|---|---|
windows |
Only works for installed apps. Shows powershell name & icon in development. |
|
linux | ||
macos | ||
android | ||
ios |
首先,下载通知提示插件
运行 cargo add tauri-plugin-notification
以将插件添加到 Cargo.toml
的项目依赖中。
修改 lib.rs
以初始化插件:
以下是一些如何使用通知插件的示例:
通知插件有 JavaScript 和 Rust 两种版本。
按照以下步骤发送通知:
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.
除了用户输入的正常数据净化程序之外,目前还没有已知的安全考虑因素。
© 2024 Tauri中文网