Saranshmalik / react-native-zendesk

React native wrapper for Zendesk SDK
MIT License
29 stars 42 forks source link

Tickets doesn't sync with multiple devices #14

Open krunalbad opened 3 years ago

Saranshmalik commented 3 years ago

Hi, could you explain a bit more here on what is happening and what is expected. In my opinion this should be on the Zendesk core SDK rather than on library, but if you could provide some more info so that I can dig in to the same and get back to you.

krunalbad commented 3 years ago

Yeah sure The scene is something like this:

DEVICE 1:

DEVICE 2:

FYI: The user information like name, email, and phone number is the same on both device

Saranshmalik commented 3 years ago

Just to confirm, Support SDK requires user identity to be set or the user is considered to be anonymous. Can you confirm you are calling setUserIdentity function with either token or name,email before opening the help center

krunalbad commented 3 years ago

Yup i am calling it


  ZendeskChat.setUserIdentity({
      name: user.full_name,
      email: user.email,
    });
Saranshmalik commented 3 years ago

Okay I'll look on this and try to debug why that's happening

Saranshmalik commented 3 years ago

What is the authentication type set in your support admin? As per the docs, using user and email is just using anonymous Identity, to keep a proper session Zendesk needa JWT token to be used for identity. Read here https://developer.zendesk.com/embeddables/docs/ios-unified-sdk/sdk_identify_users#support-sdk-required

krunalbad commented 3 years ago

okay, thanks for the info. I'll try sending token and get back to you.

krunalbad commented 3 years ago

If I send a token then it fails something like this using_token

Saranshmalik commented 3 years ago

Did you switch over the authentication method on your Zendesk setting as well?

krunalbad commented 3 years ago

@Saranshmalik Please do not close this. I am actually working on some other stuff as of now. I will get back to you soon. And verify this auth thing real quick. Thank you