stream-chat-android icon indicating copy to clipboard operation
stream-chat-android copied to clipboard

Multiple ChatClient instances

Open sebastianmarschall opened this issue 1 year ago • 1 comments

For building an slack-like-app that supports login of multiple users while showing unread badges and receiving push notifications for all of them support for multiple ChatClient instances is needed.

That is possible on iOS, the Swift documentation states: "Client or ChatClient: The root object of the SDK representing the chat service. Typically, an app contains just one instance of ChatClient. However, it's possible to have multiple instances if your use case requires it (for example more than one window with different workspaces in a Slack-like app)."

On Android however it seems that isn't supported. When trying to instantiate another ChatClient the SDK logs: "[ERROR] You have just re-initialized ChatClient, old configuration has been overridden [ERROR]"

Are there plans for matching the iOS SDK in that regard?

sebastianmarschall avatar Apr 25 '24 19:04 sebastianmarschall

Hi @sebastianmarschall Sorry for the late response.

We’ve reviewed your request and added it to our backlog. While we don’t have an exact timeline for this feature, we’ll keep you updated on its progress.

Thanks,

andremion avatar Mar 21 '25 11:03 andremion

Hello @andremion, do we have a possible date for this fix by any chance?

kevinleon10 avatar Aug 25 '25 20:08 kevinleon10

Hey @kevinleon10 , @sebastianmarschall We don't have plans to support multiple instances of the ChatClient in the short/mid-term, as it will involve a huge refactoring and a major release. However, you might consider taking a look at our Multi-Tenant & Teams, which can help with your requirements. Thanks,

andremion avatar Aug 26 '25 07:08 andremion

Thanks @andremion

kevinleon10 avatar Oct 17 '25 19:10 kevinleon10