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§
Enums§
Functions§
- register
- Start native token registration. Completion means the request was accepted;
Event::Tokencarries 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.