tauri_sys::notification

Function request_permission

source
pub async fn request_permission() -> Result<Permission, Error>
Expand description

Requests the permission to send notifications.

ยงExample

use tauri_sys::notification;

let perm = notification::request_permission().await?;