onMessageReceived

fun onMessageReceived(data: MutableMap<String, String>, listener: Push.IMessageReceivedListener?)

Use this method in the onMessageReceived of your class which extends FirebaseMessagingService to allow the RainbowSdk to manage new message received.

Parameters

data

Map, String> The data message gettable by message.getData()

listener

IMessageReceivedListener a callback to know if application start is needed before handling the message.