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

How to get session callback like iOS SDK

Open baronha opened this issue 1 year ago • 3 comments

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])
})

baronha avatar Feb 27 '24 07:02 baronha

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:

  • https://github.com/crisp-im/crisp-sdk-android/issues/138#issuecomment-1245541604
  • https://github.com/crisp-im/crisp-sdk-android/issues/157#issuecomment-1620548492
  • https://github.com/crisp-im/crisp-sdk-android/issues/125#issuecomment-1911668531

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

Doc1faux avatar Mar 25 '24 16:03 Doc1faux

Hi @baronha,

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

Doc1faux avatar Jun 21 '24 09:06 Doc1faux

Hi @baronha,

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

Good news today. Yay. Many thanks @Doc1faux

baronha avatar Jun 21 '24 09:06 baronha