Skip to content

How can i send additionData.payload along with the notification for iOS and Android devices #3

@adiYaakov0105

Description

@adiYaakov0105

Trying to get payload addition data on android returns always null:

override fun onNotificationProcessing(receivedResult: OSNotificationReceivedResult): Boolean {
val id = receivedResult.payload.additionalData.getString("id")
val type = receivedResult.payload.additionalData.getInt("type")
val notification = PushNotification(PushNotificationType.valueOf(type), id)

    PushNotificationManager.onPushNotificationReceived(notification)
    return false
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions