PushNotificationReceivedPayload

data class PushNotificationReceivedPayload(val messageId: String?, val title: String?, val body: String?, val data: Map<String, String>)

Payload fired to host-app listeners registered via Swan.addPushNotificationReceivedListener when a data-only FCM message arrives in the foreground BEFORE the SDK has displayed the system notification.

Constructors

Link copied to clipboard
constructor(messageId: String?, title: String?, body: String?, data: Map<String, String>)

Properties

Link copied to clipboard
val body: String?

Body from data["body"]. May be null if the payload omits it.

Link copied to clipboard

The raw FCM data map as delivered by the Firebase library. String-only per FCM wire enforcement. Host apps that need typed access should parse known keys themselves; the SDK does NOT pre-parse this map.

Link copied to clipboard

FCM RemoteMessage.getMessageId() — the transport-layer id assigned by Firebase. May be null for synthetic / test pushes (Swan.handleFcmDataForTests) where no real RemoteMessage exists.

Link copied to clipboard

Title from data["title"]. May be null if the payload omits it.