PushListener

interface PushListener

Push notification events.

Register with KMPNotifier.addPushListener(...) (or FirebasePush.addListener(...)). Shared events (notification clicks, action buttons) are part of the core API — see KMPNotifier.Listener.

Functions

Link copied to clipboard
open fun onNewToken(token: String)

Called when the push notification token is updated, or initialized the first time.

Link copied to clipboard
open fun onPayloadData(data: PayloadData)

Called when a data-type push message is available.

Link copied to clipboard
open fun onPushNotification(title: String?, body: String?)

Called when a notification-type push message is received.

Link copied to clipboard

Called when a push notification is received, with both notification content and payload.