Recent searches


No recent searches

issues retrieving opened tickets when using anonymous identity



Posted Jun 19, 2024

Hello,

I work on Zendesk  SDK integration in my iOS app.

We are using anonymous identity to open a ticlet with both user mail and user name:

Zendesk.instance?.setIdentity(Identity.createAnonymous(name: name, email: email) 

We are using the SDK to create a ticket:

func createRequest(completion: (Error?)->Void) {

        let request = ZDKCreateRequest()

        request.subject = "this is a test"

        request.requestDescription = "Please delete this request"

        requestProvider.createRequest(request) { (result, error) in

            completion(error)

        }

    } 

When we retrieve the number of tickets just after creation, we call:

requestProvider.getAllRequests { (list, error) in

            print(list)

        }

list contains 1 element.

 

The issue is when we call “getAllRequests” after killing the app: list is empty then.

We used to use Messenging tool successfully for another purpose, the request count worked even if the app was killed between a request creation and a getAllRequests call.

Did we forget something ? Do you use a king of cookie to keep information through 2 app launches ?

 

Thanks !

 


0

1

1 comment

image avatar

Christopher Kennedy

Zendesk Developer Advocacy

Hi Johann,
 
When you create a request after relaunching the app, are you seeing that the requester is a new user rather than the existing one?

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post