I'm trying to access the property "isChatting" from the ChatState. My goal is to be able to know whether the chat session is active but is always returning false, even if I do have an active session. Which means that, even when the chat screen its opened and I'm currently talking to an agent, the property "isChatting" is not updated to true.
I'm following the v2 iOS documentation but it seems that the instance ChatState it's null. If I try to print the ChatState, I receive the following error:
error: Couldn't lookup symbols: ChatProvidersSDK.Chat.chatProvider.getter : ChatProvidersSDK.ChatProvider
What is the correct way to implement it so I can check if there is a chat active session?
Please sign in to leave a comment.