Skip to main content

Send a Typing Indicator

Start Typing

Use startTyping() with a TypingIndicator object to notify the receiver that you’re typing.

Stop Typing

Use endTyping() to notify the receiver that you’ve stopped typing.
Use setMetadata() on TypingIndicator to pass additional custom data. Retrieve it with getMetadata() on the receiver side.

Real-time Typing Indicators

Use onTypingStarted and onTypingEnded in MessageListener to receive typing events.
The TypingIndicator class consists of the below parameters:

TypingIndicator Payload Structure

The TypingIndicator object contains information about typing status:Sample TypingIndicator Object:
The nested User object in sender contains:
Always remove message listeners when they’re no longer needed (e.g., in onDestroy() or when navigating away). Failing to remove listeners can cause memory leaks and duplicate event handling.

Next Steps

Delivery & Read Receipts

Track message delivery and read status

Receive Messages

Handle incoming messages with listeners

Retrieve Conversations

Fetch conversation list

Real-Time Listeners

Learn more about event listeners