always Receive Message
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.
The same message is already received by BaseChannelHandler.onMessageReceived
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.
SendbirdPushHelper.isDuplicateMessage to check if the message is already received via BaseChannelHandler.onMessageReceived.
SendbirdChat.connectionState to check the current connection state.
Return
Whether to always receive push payload. Default is false
.
Since
3.0.159