I am trying to register listener but it is not working
ngOnInit(): void {
window.Freshchat.unreadCountlistenerRegister((success, val) => {
if (success) {
console.log('Unread chat count:', val);
} else {
console.error('Failed to register listener for unread chat count.');
}
});
}
I checked the logcat logs the register is getting initialized but on ne messages noting is coming, even in chrome inspect i am unable to see the event registered
I am trying to register listener but it is not working
I checked the logcat logs the register is getting initialized but on ne messages noting is coming, even in chrome inspect i am unable to see the event registered
@techaffinity or team can you pls help?