requestPermission
requestPermission():
Promise<NotificationPermission>
Defined in: plugins/notification/guest-js/index.ts:342
Requests the permission to send notifications.
Promise<NotificationPermission>
A promise resolving to whether the user granted the permission or not.
import { isPermissionGranted, requestPermission } from '@tauri-apps/plugin-notification';let permissionGranted = await isPermissionGranted();if (!permissionGranted) { const permission = await requestPermission(); permissionGranted = permission === 'granted';}2.0.0
© 2025 Tauri Contributors. CC-BY / MIT