Messaging SDK — to check if there is an active chat | The place for Zendesk users to come together and share
Skip to main content
Viachaslau11
Contributor
October 6, 2023
Question

Messaging SDK — to check if there is an active chat

  • October 6, 2023
  • 3 replies
  • 34 views

Hi! In legacy chat mobile SDKs we had a logic that checks if there is an active chat with the user (in order not to block the app by timeout, what we usually do). We used the below code:

chat.providers()?.chatProvider()?.chatState?.isChatting == true

How should it look like in Messaging? We can not find relevant documentation

3 replies

Anton11
Contributor
April 29, 2024

Upvoting the request. The same issue with our implementation in messaging SDK. Is there a way to get information that there is an active conversation in the chat, so we won't initiate our app inactivity timeout?

Anton
Pierre16
July 2, 2025

Hello,
 

Encountering the same problem here.
Did you find any workaround on this subject ? How did you manage it on your end?

 

Pierre

Erica
Employee
July 10, 2025
Hi Pierre, 
 
You could try looking into using isFinalEvent. If a message is marked as false for this then you could possibly assume the conversation is active.