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
data
property (Kotlin) orgetData()
accessor (Java) of the FirebaseRemoteMessage
object.or the
getDataOfMap()
accessor of theRemoteMessage
object 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