Skip to main content
Quick Reference - Fetch call logs:
Available via: SDK | REST API | UI Kits

Overview

CometChat’s React Native Call SDK provides a comprehensive way to integrate call logs into your application, allowing users to keep track of their communication history. Call logs provide crucial information such as call duration, participants, and more.

Fetching Call Logs

Use the CallLogRequestBuilder to customize the call logs fetching process:
CallLogRequestBuilder settings:

Fetch Next

The fetchNext() method retrieves the next set of call logs.

Fetch Previous

The fetchPrevious() method retrieves the previous set of call logs.

Get Call Details

To retrieve the specific details of a call, use the getCallDetails() method:
  • Use pagination with a reasonable setLimit() value (e.g., 20-30) rather than fetching all logs at once
  • Use the builder’s filter methods to fetch only relevant logs for your current UI view
  • Consider caching fetched call logs locally to reduce API calls
  • Call logs return empty: Verify the authToken is valid and calls have actually been made
  • fetchNext returns the same results: Reuse the same builder instance for pagination
  • getCallDetails returns no data: Confirm the sessionID corresponds to a completed call

Next Steps

Ringing

Implement a complete calling experience with incoming and outgoing call UI

Call Session

Start and manage call sessions with full configuration options

Recording

Record call sessions for playback and compliance

Standalone Calling

Implement calling without the Chat SDK