Meaning of `UserOnlineState.NON_AVAILABLE`

[Question]
What does it mean when the SDK returns UserOnlineState.NON_AVAILABLE for User.connectionStatus? I can’t find a definition anywhere in the documentation.


[SDK Version]

    "@sendbird/chat": "^4.9.4",
    "@sendbird/react-native-scrollview-enhancer": "^0.2.1",
    "@sendbird/uikit-react-native": "^3.0.4",
    "@sendbird/uikit-react-native-foundation": "^3.0.4",

[Reproduction Steps]

In a React Native application, I have a component that retrieves the user and displays the status:

const { currentUser } = useSendbirdChat();

return (<Text>{currentUser.connectionStatus}</Text>);

It always outputs: nonavailable

When I look at the Sendbird dashboard, the same user is “ONLINE”.

Hello @curthipster

Welcome to the Sendbird community!

When the SDK returns UserOnlineState.NON_AVAILABLE for User.connectionStatus, it means that the user’s connection status is not available or cannot be determined. This could happen if there is an issue with the SDK or the connection between the SDK and the Sendbird server. In this case, it is recommended to check the network connection and make sure that the SDK is properly initialised and connected to the server.

Thank you, @Chinmaya_Gupta. I think there’s something more nuanced than that going on in my case. I am able to send and receive messages and I can see from the Sendbird admin dashboard that my user is online. However, the SDK is always telling me that my connection status is nonavailable. Any suggestions for how to troubleshoot further?