notify
Posts an OS-level notification (Notification Center on macOS, Action Center on Windows) via tauri-plugin-notification.
Import
Signature
Parameters
Usage
Why this exists
Wallpaper webviews cannot use the browser Notification API: Notification.requestPermission() has no UI surface that the wallpaper origin can present, so permission cannot be granted. The host process owns the OS-level permission and posts notifications on the wallpaper's behalf.
Notes
- The first call from a freshly installed Fluxlay app may trigger an OS-level permission prompt for the Fluxlay process itself. If the user denies, subsequent
notifycalls resolve successfully but no notification appears. - macOS additionally requires the Fluxlay app to be signed and notarized for notifications to display in production builds. Development builds may surface notifications inconsistently depending on local code-signing configuration.
- There is no rate limit at the SDK level. Wallpapers should debounce calls themselves to avoid spamming the user (one notification per significant state change is a reasonable rule).
- Click handlers and rich actions are not exposed in this version. Only
titleandbodyare supported.