What data populates the unread indicator for a ticket?
Hello,
We leverage the Support SDK on iOS to present the ticket requests. How is the data sourced for determining when to show the unread ticket indicator for the user (dot on the left side)? Is this available via the Zendesk API? Is it stored on-device and handled within the SDK?
Thanks.
-
Hi Brandon! I'm not 100% sure of the underlying mechanics of the unread indicator in the SDK, but it is likely the GetRequestUpdates method documented here. It is not a real-time method though, because it can only be updated once an hour...if you call the method again from the same device, it'll just return the cached data.
-
Greg Katechis, that refers to the Unity SDK, not the Support SDK for iOS
Brandon Hawker, the documentation has this section Check for ticket updates, which suggests using the ZDKRequestProvider, caching requestUpdates.
isRequestUnread seems to be its method to identify whether a ticket has that unread dot or not, representing a boolean for that state. Documentation for that method here:
Better to check that repo for Zendesk Providers SDK iOS, which is imported as part of the Support SDK
-
Ah, thanks Rafael. I'm on an older version of an SDK which doesn't have that functionality so I missed it (can't upgrade right now due to a bug).
-
Brandon Hawker which version are you on? I find references of this being present since 5.1
-
5.3.0
There's no signature in the ZDKRequestProvider header for getUpdatesForDevice, but I can access it it turns out.
-
That's cool, thanks for confirming.
From this specific commit, it seems like this function has been present at least since 4.0.0, November 2019
Please sign in to leave a comment.
6 Comments