I am using the react native ui kit. How can I listen to(in realtime) other connected user's online/offline status

The use case is , I want to show a green dot or a notification when the connected user comes online or goes offline in real time. How can I check this? is there a listener ?

Hello @Sumit_Dey, and welcome to the Sendbird Community.

The Sendbird Chat SDK does not have a listener for a user’s connection status. To fetch the user’s online status, you can use an ApplicationUserListQuery and check the connection state, or you can retrieve the status of the members in a channel.

Please see the follow page in the Sendbird Docs for retrieving the online status of a user: Retrieve the online status of a user | Chat JavaScript SDK | Sendbird Docs