Saranshmalik / react-native-zendesk

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

[Help Center] no articles found #25

Closed guangyu-moves closed 2 years ago

guangyu-moves commented 2 years ago

Hello @Saranshmalik! Thanks for creating this package. I have a small issue with the Help Center.

I initialize a fresh repo with react-native init and tried both Chat and Help Center. While Chat started up, the Help Center showed no articles found

Have you came across this before? Logs are in the screenshot below. Thank you!

Screen Shot 2021-11-21 at 11 42 29 PM
guangyu-moves commented 2 years ago

Oops, here is another screenshot showing No articles found. Sometimes it shows the other screenshot.

I have many articles in the Zendesk Help Center, and they are all set to visible.

no articles found
guangyu-moves commented 2 years ago

Issue resolved.

Reason is that I cannot pass the same email for both the chat account and the anonymousIdentity. Not sure why, but this only affects iOS.

MathisBarre commented 1 year ago

@guangyu-moves we have the same issue as you. Can you elaborate ?

guangyu-moves commented 1 year ago

@MathisBarre It's been a while but I think I fixed my issue by using a different email for the chat account and the anonymousIdentity. I think it might have to do with https://github.com/Saranshmalik/react-native-zendesk/blob/master/ios/RNZendeskChat.m#L67

fahadhaque007 commented 11 months ago

Anyone else who might run into this issue, need to set the identity

RNZendesk.setUserIdentity({email: email, name: name})

I did that before calling showHelpCenter

RNZendesk.showHelpCenter({ withChat: true, chatOnly: false, name: name, email: email })

MathisBarre commented 11 months ago

Honestly, this SDK is a mess, we ended up displaying web help center with a webview