Issue with GetUnreadMessageCountAsync method in Messaging SDK Unity
Posted Apr 16, 2025
Hello!
We are currently integrating your messaging SDK into our Unity application and have encountered a technical issue with the GetUnreadMessageCountAsync
method
Here are the details of the issue:
In our usage GetUnreadMessageCountAsync(Action onUnreadCountChanged, bool shouldSubscribe)
returns 0 until the user opens the support conversation.
We attempted subscribing to the WebSocket event outside of the conversation, but this did not resolve the issue.
The method only starts returning valid information after the user has opened the support conversation.
Our goal is to notify users of new responses from support agents by displaying a notification dot above the support button. However, the current behaviour of the SDK prevents us from achieving this functionality.
Expected Behaviour:
We expect that the GetUnreadMessageCountAsync
method should return the actual unread message count as soon as the SDK is initialised, regardless of whether the user has opened the support conversation.
Could you please provide guidance on how to resolve this issue or let us know if there is an alternative approach to achieve the desired functionality?
We are using Zendesk Unity UPM package version 3.2.0
Thank you for your assistance. We look forward to your response
0
3 comments
Sign in to leave a comment.