Managing User Devices and Browser Tabs
Your users might use multiple devices simultaneously or switch devices. Depending on your use case, your app should display all messages and calls from all devices. mesibo provides multiple APIs depending on your use case. Below are the use cases:
Syncing on Multiple Devices Simultaneously
mesibo offers the capability for users to sign in from multiple devices. Users can log in from up to eight devices simultaneously. All their data, including messages, calls, profiles, images, files, etc., will be automatically synchronized across all their devices.
Refer to the multiple device login documentation for more details.
Restoring Messages on Changing Device
If you are implementing functionality to restore user messages and other data when a user changes devices, there are two options:
Retention and Synchronization (On-Premise Only)
You can enable retention in the mesibo console to store all messages sent or received by the user in your on-premise database. You can then use synchronization APIs to sync all messages when the user logs in from a new device.
Refer to the synchronization section in the Get-started tutorial to learn more.
Note: This requires an on-premise installation. Additionally, retention does not work with end-to-end encryption, as the server will be unable to decrypt and store messages in the database. In this case, use Option 2.
Option 2: Backup and Restore
mesibo provides backup and restore APIs that allow you to back up and restore user data. You can regularly back up and upload the user database to a server.
Many popular apps, such as WhatsApp, use this approach to regularly back up and restore messages.
Refer to the backup and restore APIs to learn more. While the backup API is not supported in JavaScript, you can always enable syncing on multiple devices and take backup from the Android or iOS device.