Jetpack Compose support via UiKit

[Problem/Question]

I am implementing Chat functionality in an Android app built entirely with Jetpack Compose (latest version).

I have gone through the two example projects in Sendbird UiKit (latest version) and looked at the source of various modules & Fragments. I see that out-of-the-box components such as ChannelListFragment can be embedded in a Composable via AndroidView, however, when a Channel is selected, a new ChannelActivity is presented to the user. This isn’t really an experience we want in the application.

Is there any plan to provide a set of Jetpack Compose components for Android developers to use?

I managed to implement a not-so-elegant solution over the last few days. For anyone interested –

  1. ChannelListFragment and ChannelFragment are wrapped in their own Composables via a AndroidView.
  2. I used one of the techniques discussed in this blog post to get the Fragment behaving correctly when in Composables.
  3. Remember to call SendbirdUIKit.init with the applicationContext in the main Activity or using this in Application class.
  4. Multidex needs to be turned on otherwise the 64K limit causes weird issues in the application.
    5 The Application class must inherit from MultiDexApplication.

Hope this helps someone. It is disappointing to see no one from Sendbird support or engineering post a response in this topic.

Hi @indyfromoz,

Can you share snippet code for implementation sendbird using compose ?

Are there any plans to release a compose version of the SDK? we are in 2024 - good android apps uses compose.

please give us an update

I have an application fully built with compose, and i am deciding if i want to use the sendbird chat features on there. is there any plans on getting Jetpack compose support in the near future?

Hello everyone @indyfromoz @kosmas @swordi @Hunter ,

This is Jerry, Developer Advocate at Sendbird.

Thank you for your patience regarding the answer.

We have a plan to provide the UIKit library support for Jetpack Compose. We are targeting a Beta release in early August. I will ping you once it’s been released.

Best regards,
Jerry

Jetpack Compose has been released, please check it out!