react-native-zendesk-chat icon indicating copy to clipboard operation
react-native-zendesk-chat copied to clipboard

Zendesk ChatRating after chat ends.

Open victor-scaleforce opened this issue 3 years ago • 5 comments

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!

victor-scaleforce avatar Dec 22 '20 12:12 victor-scaleforce

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 avatar Dec 22 '20 18:12 fbartho

@fbartho I can add this feature. I've been working on adding some new features and I will probably need your help there.

gabrielperales avatar Feb 04 '21 11:02 gabrielperales

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 avatar Feb 04 '21 13:02 ArtemVass

@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 avatar Feb 04 '21 18:02 fbartho

@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.

ArtemVass avatar Feb 05 '21 07:02 ArtemVass