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.
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
Log in to comment and vote
Comments1
🎉 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
unreadMessageCountfield in the payloadThe 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
Thanks for the request — keep the feedback coming! 🙌