techaffinity / freshchat-phonegap

Freshchat sdk for phonegap
7 stars 36 forks source link

unreadCountlistenerRegister is not working #58

Open GovindCodes opened 1 year ago

GovindCodes commented 1 year ago

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

@techaffinity or team can you pls help?