alwaysReceiveMessage

open override fun alwaysReceiveMessage(): Boolean

When the push payload is received, the SDK checks for the below conditions and drops the message if either one of the condition is satisfied.

  1. The same message is already received by BaseChannelHandler.onMessageReceived

  2. The app is foreground and is connected to Sendbird.

If you wish to always receive push payload via onMessageReceived, you can use this method and return true.

You can use some helper methods in case you choose to receive push payload all the time.

Return

Whether to always receive push payload. Default is false.

Since

3.0.159