crisp-im / crisp-sdk-android

:package: Crisp Android SDK, add a chat in any Android app and communicate with your users.
https://docs.crisp.chat/guides/chatbox-sdks/android-sdk/
Other
55 stars 17 forks source link

Display messages sent `from` `user` from REST API #166

Closed baronha closed 4 months ago

baronha commented 5 months ago

I use REST API to send messages from user to operator via API: https://docs.crisp.chat/references/rest-api/v1/#send-a-message-in-conversation on iOS works perfectly. But Android Socket does not listen to chat messages.

Results of the conversation:

CRM: screenshot-2024-01-30-at-11525_p2ucmz


Android SDK: screenshot-2024-01-30-at-11522_p9vq58

Doc1faux commented 5 months ago

Hi @baronha,

The issue is not related to socket but the carousel message type which is not currently supported by the Android SDK so it is ignored. The upcoming release which should be available in February will support it. I have opened issue #167 to keep track of it.

I close the issue

baronha commented 5 months ago

@Doc1faux Not the carousel type but also the text is not displayed correctly. screenshot-2024-01-30-at-18082_kbj160

Screenshot 2024-02-01 at 10 28 58

Doc1faux commented 5 months ago

As it seems not tied to carousel message type, I reopened the issue.

I have investigated this morning and I had no issue until I read twice your first comment and saw you were talking about sending messages from user to operator, and indeed, this case is not currently handled as I was dropping any sent message I did not have in cache...

I already fixed it a month ago for the next upcoming release this month :) I keep you up-to-date when it will be available.

Doc1faux commented 4 months ago

This should be fixed in 2.0.0beta1. This build is for preview as it still lacks some minor features and needs some optimizations :)

baronha commented 4 months ago

@Doc1faux Thank you for your enthusiastic support. It works perfectly !!