How to handle multi-device login kick

Overview

By default, RC allows only one Web client, one desktop client, and one mobile client to be online simultaneously. If a user logs in on multiple devices of the same platform, they’ll experience a multi-device login kick. For example, logging in with the same account on two or more Web tabs.

Symptoms

When kicked, the Events.SUSPEND listener triggers, returning code 31010, indicating a multi-device login kick.

Solutions

  1. When the Events.SUSPEND listener triggers with code 31010, show a UI prompt and redirect the user to the login page. Let them decide whether to log in again. Avoid calling the connect method within the Events.SUSPEND listener to prevent a dead loop mutual kick.
  2. Web client: Enable multi-device message synchronization. This allows message syncing between Web, desktop, and mobile clients, and supports multiple Web clients online simultaneously. Upon re-login, all messages sent and received that day will be retrieved.
    To enable: Go to ConsoleChat settingsChat pricing plansMulti-device message synchronization. The service takes effect in about 15 minutes.

  1. Electron client: Multi-device login isn’t supported.