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§
- Notify
Request - A local notification to post.
Traits§
- Notifier
- Posts local notifications. Installed by the platform backend; the default is a no-op.
Functions§
- Provide
Notifier - 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.