tauri_sys::notification

Function is_permission_granted

source
pub async fn is_permission_granted() -> Result<bool, Error>
Expand description

Checks if the permission to send notifications is granted.

ยงExample

use tauri_sys::notification;

let is_granted = notification::is_permission_granted().await?;