Skip to main content

Crate day_part_push

Crate day_part_push 

Source
Expand description

APNs and FCM registration and delivery. Sender credentials belong on your server. Call watch before register; token changes arrive as events and must be sent to your server.

Structs§

Token
Watch

Enums§

Error
Event
Provider

Functions§

register
Start native token registration. Completion means the request was accepted; Event::Token carries the token. Apple requires a push entitlement; Android requires Firebase app resources.
request_permission
Ask for visible notification permission separately from transport registration.
supported
unregister
Withdraw the native registration and forget the cached token.
watch
Subscribe to token changes and messages. Replays the last token and up to 32 recent events, including notification taps received before the UI mounted. Callbacks may run off the UI thread.