handlePush

fun handlePush(context: Context, data: Map<String, String>): Boolean

When a push receives a push message, this function will process the notification and display it to the user. Add this function to your FirebaseMessagingService in FirebaseMessagingService.onMessageReceived to enable the StreamLayer SDK to intercept push notifications.

Return

Returns true if this is a StreamLayer notification and it's handled by SDK, otherwise returns false

Parameters

context

Application context

data

Remote message data map object received via hosts' FirebaseMessagingService.