onReceivemethod you need to check to see if the push should be handled by the Chat SDK.
ChatActivityand a messages is received for that thread. You don't want the local notification to show! So we have a second layer of control in the form of the local push handler.
ChatActivitythere is the following code in
onResumeto decide when pushes should be shown.