react-native-zendesk-chat
react-native-zendesk-chat copied to clipboard
Zendesk ChatRating after chat ends.
Hi,
Can you tell me, please if you are going to implement the rating functionality after the chat ends? SDK Docs Example: chatProvider().sendChatRating(ChatRating chatRating, ZendeskCallback callback)
Thanks!
We had no particular plans, but that doesn't seem like too difficult a feature to add, if you want to submit a Pull Request!
That feels like a natural API to return a Promise from.
Some links:
- https://reactnative.dev/docs/native-modules-ios#promises
- https://reactnative.dev/docs/native-modules-android#promises
@fbartho I can add this feature. I've been working on adding some new features and I will probably need your help there.
chatProvider().sendChatRating(ChatRating chatRating, ZendeskCallback callback) it just sends the rating, but you have to show voting dialog too.
The feature is super valuable but it looks like there is no way to call "rating" from mobile SDK. Or does anybody know how to make it?
@ArtemVass -- is the voting dialog provided by the Zendesk iOS/Android SDKs? -- If the dialog has to be created, then it feels a bit out of scope for this library due to localization and styling concerns that would be different through every app.
@fbartho I couldn't find the way to invoke voting dialog. At least there is no info about it in SDK API. Although, agent can invoke it manually so there should be the way. Of course, there is no sense to spend time on voting dialog in this library, it should go straight from SDK.