Recent searches
No recent searches
Unread messages count is not working correctly
Posted Sep 25, 2024
I'm using the Classic web widget and "RequestUi.buildRequestList" to show the user's requests.
Meanwhile, I'm using the “ZDKRequestProvider()” to get the number of unread messages and updates for these requests. When I open a message in the request list, everything is updated and the app shows that I have fewer unread messages than before but if I close and open the app again, everything will restart and it shows the unread messages count like the first one.
0
4
4 comments
Greg Katechis
Hi Shayan! Could you let me know the specific SDK and the version number that you're using? You mention that you're using the classic web widget, but referenced an iOS provider, so I just want to be sure that I have all of the correct information.
0
Shayan
Hi Greg, sorry for the late response. I'm using the Support SDK in the Classic Web widget and SDKs and the version number is the latest, here is my code to get the SDK via SPM:
(.package(url: "https://github.com/zendesk/support_sdk_ios",
from: "9.0.0"))
Here is the link to the document I'm talking about https://developer.zendesk.com/documentation/classic-web-widget-sdks/support-sdk/ios/requests//
0
Greg Katechis
Ok, thanks for clarifying that. Not that it matters too much, but for future reference, the web widget refers to the option that is available on a web page, whereas our mobile SDKs are for iOS and Android users. That was where my confusion was.
With respect to this issue, could you please take a look at this article and go through the troubleshooting steps laid out in there? Additionally, once you're done, create a sample app where you're reproducing this issue so that you can send it to us for further investigation. Once we have that, we can take it from there.
0
Shayan
I took another look at the document, we are using the Support SDK, and when I'm getting the updates (ZDKRequestProvider().getUpdatesForDevice)) I get the whole user tickets updates. If I navigate to the tickets screen and see them (I use the default UI) I can review the messages. When I continue through the app I don't see any issue and the unread counts will update, but if I terminate the app and open it again the data will refresh and I get the whole tickets updates as the unread count.
I used the demo app to reproduce it, in the demo app it will happen if I remove the app and install it again.
0