crisp-sdk-android icon indicating copy to clipboard operation
crisp-sdk-android copied to clipboard

Message received notification?

Open alexbusuioc opened this issue 1 year ago • 3 comments
trafficstars

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?

alexbusuioc avatar May 07 '24 13:05 alexbusuioc

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 avatar May 21 '24 09:05 Doc1faux

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 ;)

Doc1faux avatar Jun 21 '24 09:06 Doc1faux

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. :(

syauqy avatar Jul 25 '24 07:07 syauqy

Hi @alexbusuioc and @syauqy, we've added the notifications feature in the new v2.0.7 release.

It's a first draft so it currently opens the Activity declared as the main entry point of your app (see wiki) but we're aiming to handle an optional Back Stack for you to open up any Activity you want to.

Doc1faux avatar Dec 02 '24 11:12 Doc1faux

We've released a new 2.0.8 version with more notifications functionalities and mainly the possibility to add your own BackStack and choose to open automatically or not the Crisp chatbox on a notification tap.

Doc1faux avatar Dec 09 '24 18:12 Doc1faux