Zendesk Unity SDK 1.2.4 - GetRequestUpdates returns valid response only if ZendeskUI has been shown



Posted Jan 10, 2022

Hello.

We are trying to add custom notification in our GUI by this manual: https://developer.zendesk.com/documentation/classic-web-widget-sdks/unity-native-sdk/unity-sdk/support/#getting-request-updates

  • We're using anonymous authentication.
  • Only one ZendeskMain (zendesk prefab) instance initializes on app launch and used in whole app lifetime
  • Repetitive calls to `zendesk.supportProvider.GetRequestUpdates(CallbackDelegate)` are made while app is active

But `Response` object in `GetRequestUpdate` callback gets valid `Result` object only if user opens ZendeskUI. E.g.:

  1. User creates ticket and closes app (completely, by removing from RAM)
  2. We're make response to this ticket
  3. User launches app - `response.Result.hasUpdates` is false
  4. User opens ZendeskUI, sees update to his ticket in tickets list, but not opens it - `hasUpdates` is true
  5. All subsequent updates to `ZendeskRequestUpdates` object in `GetRequestUpdates` callback are coming only when user opens ZendeskUI

How can we get `ZendeskRequestUpdates` with actual data (`hasUpdates`/`newComments`) without waiting for user to open ZendeskUI?


2

5

0 comments

Sign in to leave a comment.

Didn't find what you're looking for?

New post