What data populates the unread indicator for a ticket?

6 コメント

  • 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
  • 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
  • Brandon Hawker

    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
  • Rafael Santos
    User Group Leader

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

    0
  • Brandon Hawker

    5.3.0

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

    0
  • 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

サインインしてコメントを残してください。

Powered by Zendesk