Skip to content

Releases: sendbird/sendbird-chat-sdk-android

v4.17.0-ktx

18 Jul 04:23
df22e28
Compare
Choose a tag to compare

Improvements

  • Replaced all ktx interfaces with either an await prefix or a Flow postfix and deprecated the existing interfaces.

    • This is to prevent issue with auto-import within the IDE where the interface cannot be imported automatically due to the previous interfaces having the same name as the original Chat SDK interfaces.
    /**
    * All `suspend fun` now has an `await` prefix.
    */
    // Previous
    suspend fun SendbirdChat.connect(userId: String, authToken: String? = null, apiHost: String? = null, wsHost: String? = null): AuthUser
    // New
    suspend fun SendbirdChat.awaitConnect(userId: String, authToken: String? = null, apiHost: String? = null, wsHost: String? = null): AuthUser
    
    /**
    * All methods returning a `Flow` now has a `Flow` postfix.
    */
    // Previous
    fun SendbirdChat.init(initParams: InitParams): Flow<InitResult>
    // New
    fun SendbirdChat.initFlow(initParams: InitParams): Flow<InitResult>
  • Added interface for SendbirdPushHelper class

  • Added SendbirdChat.awaitAuthenticate() as a replacement for SendbirdChat.authenticateFeed()

  • Added SendbirdChat.awaitGetTotalUnreadNotificationCount()

v4.17.0

18 Jul 03:40
f457829
Compare
Choose a tag to compare

Features

  • Added SendbirdChat.authenticate() for authentication
    • Deprecated SendbirdChat.authenticateFeed()
  • Added SendbirdChat.getTotalUnreadNotificationCount() to get the total unread notification count of a user

Improvements

  • Added SendbirdPushHelper.registerHandler()
    • Deprecated SendbirdPushHelper.registerPushHandler()
  • Added SendbirdPushHelper.unregisterHandler(Boolean, PushRequestCompleteHandler?)
    • Deprecated SendbirdPushHelper.unregisterPushHandler(PushRequestCompleteHandler?)
    • Deprecated SendbirdPushHelper.unregisterPushHandler(Boolean, PushRequestCompleteHandler?)
  • Added collectionLifecycle in GroupChannelCollection, MessageCollection and NotificationCollection

v4.16.4

05 Jun 09:36
861aaab
Compare
Choose a tag to compare

Improvements

  • Added new properties hasAiBot and hasBot to GroupChannel

v4.16.3

14 May 02:09
d353e6d
Compare
Choose a tag to compare

Improvements

  • Fixed an occasional ConcurrentModificationException crash from reconnect()

v4.16.2

25 Apr 01:16
b6e5b4b
Compare
Choose a tag to compare

Improvements

  • Improved SendbirdChat.init() to prevent possible ANR during the init process

v4.16.1-ktx

12 Apr 02:19
9cfe483
Compare
Choose a tag to compare

Improvements

  • Added suspend fun for Chat SDK's Query classes

v4.16.1

12 Apr 01:51
2965dc9
Compare
Choose a tag to compare

Improvements

  • Improved stability.

v4.16.0-ktx

27 Mar 06:35
341519b
Compare
Choose a tag to compare

Features

Added MessageTemplate feature for UIKit to render messages with templates.

  • Added suspend function SendbirdChat.getMessageTemplate(String): MessageTemplate and SendbirdChat.getMessageTemplatesByToken(String?, MessageTemplateListParams): MessageTemplatesResult
  • Added result handler function for message templates SendbirdChat.getMessageTemplate(String, ResultHandler<MessageTemplate>?) and fun SendbirdChat.getMessageTemplatesByToken(String?, MessageTemplateListParams, ResultHandler<MessageTemplatesResult>?).

v4.16.0

27 Mar 02:25
91a79c7
Compare
Choose a tag to compare

Features

You can mark push notifications as clicked within the SDK, tracking the push notification clicked rate.

  • Added markPushNotificationAsClicked(Map<String, String>, CompletionHandler) in SendbirdPushHelper

    SendbirdPushHelper.markPushNotificationAsClicked(pushData)
  • Added logViewed(List<BaseMessage>), logClicked(BaseMessage) in FeedChannel

  • Deprecated logImpression(List<BaseMessage>) in FeedChannel

Added MessageTemplate feature for UIKit to render messages with templates.

  • Added messageTemplateInfo property to AppInfo.
  • Added SendbirdChat.getMessageTemplate(String, MessageTemplateHandler?).
  • Added SendbirdChat.getMessageTemplatesByToken(String, MessageTemplateParams(), MessageTemplatesResultHandler?).
  • Added MessageTemplateHandler and MessageTemplatesResultHandler.
  • Added models for message templates, MessageTemplate, MessageTemplateInfo, MessageTemplatesResult and MessageTemplateListParams.

v4.15.7

22 Mar 03:09
78a9ea2
Compare
Choose a tag to compare

Improvements

  • Added EventDetail in GroupChannelContext/FeedChannelContext to hold detailed information of channel events
    • i.e. Getting an inviter/invitees information when a channel has been added from receiving an invitation:
      override fun onChannelsAdded(context: GroupChannelContext, channels: List<GroupChannel>) {
          if (context.eventDetail is EventDetail.OnUserReceivedInvitation) {
              val inviter: User? = context.eventDetail.inviter
              val invitees: List<User> = context.eventDetail.invitees
          }
      }