I'm using react-native-freshchat-sdk 4.0.4, and if I send message over freshchat admin board, EVENT_UNREAD_MESSAGE_COUNT_CHANGED doesn't triggered. I resolve that with:
setInterval(Freshchat.getUnreadCountAsync((data) => {
let count = data.count;
let status = data.status;
if (status) {
console.log("Message count: " + count);
} else {
console.log("getUnreadCountAsync unsuccessful");
}
});
}, 1000)
But, i need to wait about 2min to get updated count, it doesn't updated immediately. Is it normal to wait about 2, 3 minutes, and if not, what could be the solution.