How can i display sendbird push notification when appllication is in foregroundmode?

I've implemented sendbird push notification in react-native. It's working fine when application is in background mode. but if application is in foreground mode then it's not display.

In code, I have also set sb.setForegroundState() and sb.setBackgroundState() method with application state.

So, anyone help me for solve out this ?


SendBird sends a push notification only when a user is disconnected. So, if the application is foreground and a user is connected, the app will not receive a push notification.

If you want to show a push notification when your application is in the foreground, you can show it using data in onMessageReceived() or onChannelChanged().