stream-chat-android
stream-chat-android copied to clipboard
Multiple ChatClient instances
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?
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,
Hello @andremion, do we have a possible date for this fix by any chance?
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,
Thanks @andremion