HomeDocumentationAPI Reference
Getting StartedAPI ReferenceBug ReportingCrash ReportingAPMHelp Center

Get Unread Count

This API returns an integer representing the number unread messages by the user.

let messageCount = Replies.unreadRepliesCount
NSUInteger messageCount = IBGReplies.unreadRepliesCount;
Replies.getUnreadRepliesCount();
Replies.getUnreadRepliesCount()
Replies.getUnreadMessagesCount((count) => {
  Alert.alert("UnReadMessages", "Messages: " + count);
});
final count = Replies.getUnreadRepliesCount();
Replies.getUnreadRepliesCount(
  function (count) {
        console.log('Replies count: ' + count);
  },
  function (error) {
        console.log('getUnreadRepliesCount could not be called ' + error);
  }
);
//iOS
Replies.UnreadRepliesCount;

//Android
Replies.getUnreadRepliesCount();