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, desktop notify-rust, the web Notifications API). Desktop/CI without a notification service simply drop 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
Removes any registered platform notifier (tests and teardown).
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
Installs a platform notifier, replacing any previously installed one.
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