Skip to main content

Module notifier

Module notifier 

Source
Expand description

Local notifications: ask permission and post user-visible notifications.

The compiled-in default is a no-op; platform backends install a real notifier through set_platform_notifier (iOS UNUserNotificationCenter, Android NotificationManager, the web Notifications API). Desktop has a zero-dependency built-in behind the notifier-native feature (notify-send / osascript / PowerShell toast); CI without a notification service simply drops them.

Structs§

NotifyRequest
A local notification to post.

Traits§

Notifier
Posts local notifications. Installed by the platform backend; the default is a no-op.

Functions§

ProvideNotifier
clear_platform_notifier
default_notifier
local_notifier
push_notification_deeplink
Record the deep-link payload of a notification the user just tapped. Called by the platform backend’s notification delegate; the app drains it via take_notification_deeplink.
set_platform_notifier
take_notification_deeplink
Take (and clear) the deep-link payload of the most recently tapped notification, if any. Polled by the app’s deep-link handling.

Type Aliases§

NotifierRef