makeFromPushNotification

fun makeFromPushNotification(msgData: Map<String, String>): Notification<PushNotificationEvent>

Builds a Notification<PushNotificationEvent> instance from the data conveyed by a received Firebase RemoteMessage or a Huawei RemoteMessage.

The passed msgData is provided either by:

  • the data property (Kotlin) or getData() accessor (Java) of the Firebase RemoteMessage object.

  • or the getDataOfMap() accessor of the RemoteMessage object of the HMS Push Kit API.