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§
- 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 - 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.