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

How to get session callback like iOS SDK #169

Open baronha opened 7 months ago

baronha commented 7 months ago

on iOS. I can get a chat's session from the callback event and I hope Android SDK can do that

IOS Example:

CrispSDK.addCallback(Callback.sessionLoaded { sessionId in
    callback([sessionId])
})
Doc1faux commented 6 months ago

Hi @baronha, sorry for the late reply. We were focused on the 2.0.0beta1 release and this feature was not prioritized.

We are currently working on 2.0.1beta2 and events callback is still not prioritized. This can be explained because 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 its usage is very limited...

However, many of you have requested to get at least the session:loaded one:

So I will discuss with the team if we can add it in this milestone ;)

Doc1faux commented 3 months ago

Hi @baronha,

Just to let you know that callbacks are planned for next release ;)

baronha commented 3 months ago

Hi @baronha,

Just to let you know that callbacks are planned for next release ;)

Good news today. Yay. Many thanks @Doc1faux