Skip to main content

request_auth

Function request_auth 

Source
pub async fn request_auth() -> Result<bool, Error>
Expand description

Ask for permission to display notifications.

Returns Ok(true) if granted, Ok(false) if denied. Prefer this over blocking::request_auth from async contexts.