Recent searches


No recent searches

What data populates the unread indicator for a ticket?



Posted May 12, 2023

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.

 

 


0

6

6 comments

image avatar

Greg Katechis

Zendesk Developer Advocacy

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.

0


image avatar

Rafael Santos

User Group Leader

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:

https://github.com/zendesk/support_providers_sdk_ios/blob/master/docs/SupportProvidersSDK/7.0.0/documentation/supportproviderssdk/requestupdates/isrequestunread(_%3A)/index.html

Better to check that repo for Zendesk Providers SDK iOS, which is imported as part of the Support SDK

0


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).

0


image avatar

Rafael Santos

User Group Leader

Brandon Hawker which version are you on? I find references of this being present since 5.1

0


5.3.0

There's no signature in the ZDKRequestProvider header for getUpdatesForDevice, but I can access it it turns out.

0


image avatar

Rafael Santos

User Group Leader

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

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post