make From Message Data
fun makeFromMessageData(msgData: Map<String, String>): Notification<PushNotificationEvent>?
Content copied to clipboard
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
dataproperty (Kotlin) orgetData()accessor (Java) of the FirebaseRemoteMessageobject.or the
getDataOfMap()accessor of theRemoteMessageobject of the HMS Push Kit API.
Note: This method may return null if the passed received message corresponds to a notification that relates to an outdated LongTermSubscription.
Since
2.2.5