androidchatsdk / Chat Android SDK / Gladly / handleMessageReceived
handleMessageReceived
fun handleMessageReceived(context:Context, remoteMessage: RemoteMessage, suppressNotifications:Boolean= false):Boolean
Handle an incoming remote message.
This should only be called in your application’s
FirebaseMessagingService in
onMessageReceived(..) to process incoming
data/notifications.
Parameters
context - Application context.
remoteMessage - The remote message to be processed.
suppressNotifications - If true, will suppress the
creation of notifications. Useful if your application is open/active
and you do not want to display notifications.
Return Boolean True if the message was processed, false otherwise.