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
56 stars 17 forks source link

Message received notification? #172

Open alexbusuioc opened 4 months ago

alexbusuioc commented 4 months ago

Notifications don't appear when a message is received. How can users know they have a new message from support? Is it possible to pull the number of unread messages?

Doc1faux commented 4 months ago

Hi @alexbusuioc and thank you for your feedback.

For the moment, this feature is not implemented. As discussed in https://github.com/crisp-im/crisp-sdk-android/issues/169#issuecomment-2018376805, the socket is only maintained when the ChatActivity is running so not before starting it, not after and not in app background, only in foreground, so if stopped, the Crisp SDK is not able to know if a new message has been received until the ChatActivity is restart.

This is clearly a limitation of our current implementation by design. As said in this same comment, we're discussing internally about it but it's not our main priority currently.

Doc1faux commented 3 months ago

Hi @alexbusuioc,

Just to keep you up-to-date, the notification subject is currently discussed in the team about how we could implement it so the feature should come :) However, don't expect it in the next release ;)

syauqy commented 2 months ago

Hi, I hope your team could implement this ASAP. We are currently going to migrate from Intercom to Crisp. But then I realized we don't know when our CS team already reply the thread/message when the user away/closing the chat dialog. :(