Skip to main content

Get Unread Message Count in Push Notification

Include the unread message count in the push notification payload to allow real-time badge updates and reduce the need for additional API calls when a notification is received.

Status: Completed1 comment

Log in to comment and vote

Comments1

  • Pourav Raj changed status to Completed
    TeamPinned

    🎉 Great news — this has been shipped!

    You can now include the unread message count directly in the push notification payload, enabling real-time badge updates without any additional API calls on notification receipt.

    Here's how it works:

    • Each push notification now includes an unreadMessageCount field in the payload

    • The count increments when new messages arrive and automatically decrements when read receipts are sent

    • Supported across FCM (Android), APNs (iOS), and Custom Provider Webhooks

    📖 Check out the full documentation here: Badge Count – CometChat Docs

    Note: This is a premium feature. To enable it for your application, please contact our team.

    Thanks for the request — keep the feedback coming! 🙌